Commit Graph
2 Commits
Author SHA1 Message Date
alamin-brandMohammad Al Amin a63ff419a2 feat(agent): let agents open web pages with any model (#6766)
* feat(agent): let agents open web pages with any model

Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com>

* fix(agent): open web pages through Baserow's HTTP stack and report failures

Failed fetches ended the whole reply, showed as invalid input, and files were stored whole.
Pages now go through the integration HTTP limits, only text is opened, and a reply opens at most five.

* fix(agent): leave scripts out of opened pages and bound their titles

Script and style text made up most of what the model got from many pages.

* fix(agent): refuse internal addresses when opening pages

The model picks the URL and a page can steer it, so the setting that lets integrations reach internal services shouldn't apply.

* fix(agent): read opened pages more safely

A crafted page could still end the reply, files sent as text were read, and pages without a charset came out garbled.

---------

Co-authored-by: Mohammad Al Amin <alamin.baserow@gmail.com>
2026-11-18 23:01:30 +01:00
alamin-br d59e412bf3 feat(agent): add native web search (#6628)
* feat(agent): add native web search setting

Agents can answer from current web pages using the search built into their model provider. Off by default because searches cost money and can leak data when combined with workspace tools.

* fix(agent): stop retrying searches once a reply reaches its limit

Newer Claude models report the limit only inside their filtering code, so they kept retrying for minutes with nothing on screen.

* fix(agent): let Anthropic enforce the reply's search cap

Searches run from filtering code escape max_uses and continuations reuse the tool,
and Anthropic already counts earlier requests of the reply, so plain search with a
fixed cap is the only one it enforces.

* fix(agent): show when a reply could not search instead of having the model say so

A 400 doesn't prove the model can't search, and an SDK that excludes search
would fail the whole reply.

* refactor(agent): match step events by pattern

* feat(agent): mark web search as unavailable beside its switch

A saved setting the chosen model can't use looked on until you read the text under it.
2026-11-09 14:00:57 +01:00