mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-07 09:02:08 +00:00
Refactors exception handling to use extension points and plugins. Moves InterventionException and HandledException into python/helpers/errors and routes exceptions from Agent (monologue and outer loops) through extension call points (monologue_exception, message_loop_exception, context_chain_exception) instead of inline handling. Removes inlined retry/critical logic and adds an error_retry plugin (reset counter + retry extension) as the retry implementation; also adds monologue_exception extensions to handle repairable, intervention, and critical exceptions. Adjusts extension hook naming in python/helpers/extension, adds agent-presence guards to several memory extensions, prevents a direct agent.handle_critical_exception call in TaskScheduler, renames a test file location, and fixes a webui modal path. |
||
|---|---|---|
| .. | ||
| agent_init | ||
| banners | ||
| before_main_llm_call | ||
| error_format | ||
| hist_add_before | ||
| hist_add_tool_result | ||
| message_loop_end | ||
| message_loop_exception | ||
| message_loop_prompts_after | ||
| message_loop_prompts_before | ||
| message_loop_start | ||
| monologue_end | ||
| monologue_exception | ||
| 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 | ||