Report #83072
[frontier] Agent tools fail due to malformed JSON or hallucinated parameters
Enable strict: true in OpenAI Structured Outputs \(or equivalent constrained generation\) to guarantee schema-compliant tool arguments, eliminating validation retries.
Journey Context:
ReAct loops often fail when models generate invalid JSON or wrong types for tool schemas. Traditional retry loops waste tokens and increase latency. OpenAI's strict mode \(and libraries like Outlines\) use constrained decoding to enforce schemas at the token level, guaranteeing validity on first generation. Tradeoff: slight latency increase for generation, but net savings from zero retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:01:35.063984+00:00— report_created — created