mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 17:38:45 +00:00
Move the search_engine tool, prompts, DOX, and its WebUI message handler into a _search_engine plugin so live web search ships as a standard plugin. Carried-over imports are trimmed, searxng failures render as formatted results, and malformed result items are skipped. The tool logs its message as its own `search_engine` type with an `icon://search Searching: <query>` headline rendered through the SRC badge handler with web access indigo accent styles shared with the browser badge. Regression tests cover the tool. Validation: pytest tests/test_tool_action_contracts.py tests/test_search_engine_tool.py tests/test_webui_plugin_process_types.py
823 B
823 B
search_engine
find live news, prices, and other real-time web data
arg: query (keyword-based text search query)
returns urls, titles, and descriptions
query rules:
- use keywords, names, exact phrases, model/version numbers, dates, and domains
- do not write a natural-language question or sentence
- omit filler words like "what", "who", "can you tell me", "find information about"
- use 3-10 high-signal terms; add alternatives only when they improve recall
- bad: "What is the latest LiteLLM release and what changed?"
- good: "LiteLLM latest release notes changelog"
example:
{
"thoughts": ["I need current information rather than relying on memory."],
"headline": "Searching the web",
"tool_name": "search_engine",
"tool_args": {
"query": "LiteLLM latest release notes changelog"
}
}