mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-05 01:48:44 +00:00
Add matching catalog artwork for A2A Chat, Behavior Adjustment, Notify User, Scheduler, Search Engine, and Wait, completing thumbnail coverage for all 47 bundled plugins. Save each JPEG at 256x256 and below 20,000 bytes, and document the asset ownership in each plugin's DOX. Validation: checked image dimensions, encoding, and file sizes; verified catalog discovery, HTTP delivery, and live WebUI rendering.
36 lines
1.9 KiB
Markdown
36 lines
1.9 KiB
Markdown
# Search Engine Plugin DOX
|
||
|
||
## Purpose
|
||
|
||
- Own the `search_engine` tool for live web search via the local SearXNG instance.
|
||
|
||
## Ownership
|
||
|
||
- `tools/search_engine.py` owns query execution, result formatting, and error handling.
|
||
- `extensions/webui/get_message_handler/` owns the tool message presentation moved from core `webui/js/messages.js`.
|
||
- `extensions/webui/get_process_step_types/` owns the `search_engine` process step type registration.
|
||
- `prompts/` owns the tool prompt.
|
||
- `plugin.yaml` and `README.md` own metadata and docs.
|
||
- `webui/thumbnail.jpg` owns the 256×256 plugin catalog artwork, kept below 20 KB.
|
||
|
||
## Local Contracts
|
||
|
||
- Search runs through `helpers.searxng.search`, which proxies to the SearXNG URL inside the development runtime via `runtime.call_development_function`.
|
||
- Result cap is `SEARCH_ENGINE_RESULTS = 10`; exceptions flow through `helpers.errors.handle_error` and return a failed-search message instead of raising.
|
||
- The tool logs its message as type `search_engine` with an `icon://search Searching: <query>` headline. The WebUI message handler uses `drawMessageToolSimple` with code `SRC`, styled by the web access indigo styles shared with the browser badge that `extensions/webui/page-head/` loads; `extensions/webui/get_process_step_types/` registers the type. `get_tool_message_handler` reuses this renderer for saved `type="tool"` search logs.
|
||
|
||
## Work Guidance
|
||
|
||
- Keep tool output concise, model-readable, and safe for history persistence.
|
||
- Coordinate argument or behavior changes with the tool prompt and the shared SearXNG helper contract.
|
||
- Respect intervention flow before and after remote searches.
|
||
|
||
## Verification
|
||
|
||
- Import the tool in the framework runtime and run the tool contract and WebUI plugin process-type tests after changes.
|
||
- Run `tests/test_search_engine_tool.py` for the tool formatting and execution regression tests.
|
||
|
||
## Child DOX Index
|
||
|
||
No child DOX files.
|