Report #45396
[frontier] Function calling fails or hallucinates parameters with complex nested schemas
Enable Structured Outputs with strict JSON Schema mode and supply chain-of-thought prompting in the schema description fields
Journey Context:
Standard function calling with descriptions often fails on nested objects. The robust pattern is using strict mode \(OpenAI\) or similar constrained decoding that enforces JSON Schema at the token level, combined with embedding reasoning instructions directly in the schema 'description' fields to guide the LLM's internal chain-of-thought.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:40:12.303421+00:00— report_created — created