mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 17:38:45 +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.
40 lines
2.2 KiB
Markdown
40 lines
2.2 KiB
Markdown
# Notify User Plugin DOX
|
||
|
||
## Purpose
|
||
|
||
- Own the `notify_user` tool for notifications while the chat runs on its own for a longer time.
|
||
|
||
## Ownership
|
||
|
||
- `tools/notify_user.py` owns argument validation and dispatch to the shared notification manager.
|
||
- The tool logs its message as type `notify_user` with an `icon://notifications Notifying user: <title>` headline.
|
||
- `extensions/webui/get_message_handler/` owns the `notify_user` message presentation with the `NTF` badge.
|
||
- `extensions/webui/get_process_step_types/` registers the `notify_user` process step type.
|
||
- `extensions/webui/page-head/` and `webui/css/` own the badge accent styles.
|
||
- `prompts/` owns the tool prompt and the notification-sent framework message.
|
||
- `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
|
||
|
||
- `priority` advertises `normal` and `high` names and also accepts legacy numeric values `10` and `20`, mapping both forms to `NotificationPriority`; unknown names and types return tool errors instead of raising.
|
||
- The tool uses the shared `AgentContext.get_notification_manager()`; it owns no notification storage of its own.
|
||
- The WebUI handler registers only for the `notify_user` message type and reuses `drawMessageToolSimple` with code `NTF`.
|
||
- Agent notifications use the longer 30 second display time so they survive brief chat switches.
|
||
- `prompts/agent.system.tool.notify_user.md` gates sends to a false or stale user picture: a dropped, replaced, or contradicted strategy, plan, or assumption the user has seen; start, resume, continue, attempt, task end, and goal completion are excluded, and delegated work reports to its parent.
|
||
|
||
## 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 notification contract.
|
||
- Respect intervention flow before raising user-visible notifications.
|
||
|
||
## Verification
|
||
|
||
- Import the tool in the framework runtime and run the tool contract tests after changes.
|
||
- Run `tests/test_notify_user_tool.py` for the tool execution regression tests.
|
||
|
||
## Child DOX Index
|
||
|
||
No child DOX files.
|