mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 17:38:45 +00:00
Move the notify_user tool, its prompt, and its framework message out of core tools and prompts, and add the plugin metadata, DOX, and WebUI badge into a dedicated _notify_user plugin so agent notifications ship as a standard plugin. The tool accepts normal and high priority names mapped to the shared notification priority enum, enforces a fixed 30 second toast time instead of an agent-supplied timeout, and logs its message as its own notify_user type with an icon://notifications Notifying user headline rendered through an NTF badge handler. The tool prompt gates notifications to a false or stale user picture: a dropped, replaced, or contradicted strategy, plan, or assumption the user has seen; starts, resumes, continuing, attempts, task end, and goal completion are excluded, and delegated work reports to its parent instead of notifying. The example shows a full request envelope with the title above the message. Validation: pytest tests/test_notify_user_tool.py tests/test_tool_action_contracts.py tests/test_prompt_catalogs.py
8 lines
219 B
YAML
8 lines
219 B
YAML
name: _notify_user
|
|
title: Notify User
|
|
description: Send notifications to the user while the chat runs on its own for a longer time.
|
|
version: 1.0.0
|
|
settings_sections: []
|
|
per_project_config: false
|
|
per_agent_config: false
|