mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-05 15:31:08 +00:00
Replace ad-hoc mutable exception_data flows with a single extensible Agent.handle_exception hook. Agent now delegates monologue/message_loop/process exceptions to handle_exception, and many extensions were renamed/updated to use a unified `data` payload (and new extension point naming) instead of `exception_data`. The extensible decorator was adjusted to initialize data['exception']=None and to derive different start/end names, and call_extensions usage was updated accordingly. Other changes: load_webui_extensions now passes agent to plugins.get_webui_extensions, plugin path resolution was improved to accept patterns via get_enabled_plugin_paths, some duplicate/unused message-loop exception extension files were removed, and task_scheduler references to critical-exception handling were adjusted (commented). These changes centralize and standardize exception handling for extensions and simplify extension implementations. |
||
|---|---|---|
| .. | ||
| agent_Agent_handle_exception_end | ||
| agent_init | ||
| banners | ||
| before_main_llm_call | ||
| error_format | ||
| hist_add_before | ||
| hist_add_tool_result | ||
| message_loop_end | ||
| message_loop_prompts_after | ||
| message_loop_prompts_before | ||
| message_loop_start | ||
| monologue_end | ||
| monologue_start | ||
| process_chain_end | ||
| reasoning_stream | ||
| reasoning_stream_chunk | ||
| reasoning_stream_end | ||
| response_stream | ||
| response_stream_chunk | ||
| response_stream_end | ||
| system_prompt | ||
| tool_execute_after | ||
| tool_execute_before | ||
| user_message_ui | ||
| util_model_call_before | ||