Report #76226
[frontier] Agent tool calls fail due to invalid JSON schema or hallucinated parameters.
Use constrained decoding libraries \(Outlines, Guidance\) to enforce grammar constraints during token generation, guaranteeing 100% schema-compliant tool arguments without post-hoc validation or retry loops.
Journey Context:
JSON mode reduces but does not eliminate schema violations; LLMs still hallucinate keys or invalid enums. The frontier shifts to grammar-constrained sampling \(FSM-based decoding\), where the tokenizer is constrained to valid productions of the tool's JSONSchema, eliminating parse errors and reducing latency by removing validation retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:32:16.918333+00:00— report_created — created