Repository navigation
Agentao 0.5.21
Agentao 0.5.21
This release replaces the web_search backends. The chain is now
deepseek → tavily → jina, and bocha and duckduckgo are retired.
Keyless DuckDuckGo answered every query with a captcha (measured 2026-07-22),
so on an install without a search key the tool always failed. Every backend now
needs a key, and with none the tool is not offered to the model at all. The
search keys are also kept out of child processes. Four changes behave
differently on upgrade; see Behaviour changes.
New backends
deepseekcalls DeepSeek's Search API. It reuses your chat key
DEEPSEEK_API_KEY, but only whenDEEPSEEK_BASE_URLis anhttpsURL on
api.deepseek.com(port 443, no credentials in the URL). A key behind a
proxy or gateway does not turn on search; an INFO line inagentao.log
names the variables, never their values. The Search API URL is fixed and
never derived from the base URL.tavilyusesTAVILY_API_KEY. It returns the result list, not an LLM
summary (include_answer: false), and at most the documented 20 results.jinais unchanged and still needsJINA_API_KEY.
A backend that errors falls back to the next one, and the result says so. An
empty result ends the chain. A host pins one backend with
WebSearchTool(backend=...), which turns fallback off, and passes keys with
deepseek_api_key=, tavily_api_key= and jina_api_key=.
WebSearchTool.backends gives the resolved chain.
Two details were measured against the live APIs on 2026-11-15:
- DeepSeek's 128-character query limit counts code points, as Python's
len()does. A longer query is refused before the request, not cut, and
the chain falls back. - DeepSeek's
datefield is not shown to the model, because some values are
wrong: python.org's 3.13.13 release page, released in April 2026, came back
dated 2013-03-12. The raw value goes to the DEBUG log.
Behaviour changes
bochaandduckduckgoare retired.WebSearchTool(backend="bocha")
andbackend="duckduckgo"raiseValueError,WebSearchTool(api_key=...)
(the Bocha key) raisesTypeError, andBOCHA_API_KEYis no longer read.
SetTAVILY_API_KEYorJINA_API_KEY, or pointDEEPSEEK_BASE_URLat
https://api.deepseek.com. A host that passed a Bocha key passes
tavily_api_key=ordeepseek_api_key=instead.- With no search key,
web_searchis not registered. The model is no
longer offered a tool that could only return an error after a confirmation
prompt. The reason is logged once per process. Namingweb_searchin
disable_toolsorenabled_toolsstays legal. web_searchno longer needs the[web]extra. No backend parses HTML,
so a barepip install agentaowith a search key gets the tool.web_fetch
still needs[web].TAVILY_API_KEYandJINA_API_KEYno longer reach child processes.
Like the provider keys, they are dropped from the environment of shell,
MCP, ACP and hook children, so a prompt-injectedenvcannot print them.
A search key a host passes toWebSearchToolis dropped by value too,
whatever variable holds it. The tools themselves are unaffected. If
something run by the agent calls Tavily or Jina itself:- an MCP or ACP server gets the key in its
envblock:
"env": {"TAVILY_API_KEY": "$TAVILY_API_KEY"}; - a script in the agent's shell, or a hook, needs
AGENTAO_SCRUB_CHILD_ENV=0, because neither takes anenv.
- an MCP or ACP server gets the key in its
Other changes
- The configuration notes ("web_search omitted", a non-official
DEEPSEEK_BASE_URL) are logged once per process instead of on every
Agentaoand sub-agent construction. - When the host disables
web_search, leaves it out ofenabled_tools, or
supplies its own throughextra_tools, the default tool is not built. A
host's ownweb_searchtherefore no longer logs the "overrides an
already-registered tool" line. - Multi-line search snippets are shown on one line.
See CHANGELOG.md for the full entries.