agent-zero/plugins/_context_doctor
linkliti e85842c5dc Improve Context Doctor output handling
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.
2026-08-24 21:43:30 +03:00
..
extensions/python/message_loop_result Improve Context Doctor output handling 2026-08-24 21:43:30 +03:00
helpers Improve Context Doctor output handling 2026-08-24 21:43:30 +03:00
tests Improve Context Doctor output handling 2026-08-24 21:43:30 +03:00
webui Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
AGENTS.md Improve Context Doctor output handling 2026-08-24 21:43:30 +03:00
default_config.yaml Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
plugin.yaml Add Context Doctor plugin 2026-08-24 19:51:30 +03:00
README.md Add Context Doctor plugin 2026-08-24 19:51:30 +03:00

Context Doctor

Repairs model tool call JSON before sending it to history and tool processing.

Behavior

  • Uses json_repair after native parsing has completed.
  • Accepts only complete Agent Zero tool calls (tool_name and object tool_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.