Report #99807
[agent\_craft] Tool arguments and inter-agent messages are parsed unreliably from free-form text.
Use structured outputs \(JSON Schema / Pydantic\) for every machine-readable exchange between the model and tools or sub-agents. Set strict schema enforcement where supported, validate at runtime, and include explicit 'not found' representations.
Journey Context:
JSON mode guarantees valid JSON but not the right schema. Structured outputs constrain the decoder so the output matches the schema, dramatically reducing parsing failures and retries. This compresses context because downstream components can consume typed data directly instead of re-parsing prose.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-30T05:05:54.912451+00:00— report_created — created