mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-10-13 14:28:00 +00:00
Repair completed non-tool output into compact thoughts JSON, preserve schema-guided selection of the most complete repaired tool call, refresh log fields, and create a response log only for response tool calls using text. Suppress XML-shaped malformed responses as configured. Cover raw fallback, repaired-call selection, and response-log handling. |
||
|---|---|---|
| .. | ||
| extensions/python/message_loop_result | ||
| helpers | ||
| tests | ||
| webui | ||
| AGENTS.md | ||
| default_config.yaml | ||
| plugin.yaml | ||
| README.md | ||
Context Doctor
Repairs model tool call JSON before sending it to history and tool processing.
Behavior
- Uses
json_repairafter native parsing has completed. - Accepts only complete Agent Zero tool calls (
tool_nameand objecttool_args). - Stores and displays repaired tool calls as compact JSON.
- Optionally replaces XML-like output with
{}in cases where model uses native XML tool calls.