Report #103035
[agent\_craft] Model hallucinates tool arguments or invents enum values
Use strict JSON Schema with additionalProperties: false, narrow enums, required fields, and strict: true where supported. Validate arguments against the schema before executing the tool and reject malformed calls back to the model.
Journey Context:
Function schemas constrain the model's output distribution. OpenAI's function calling guide recommends strict mode and explicit enums to eliminate hallucinated parameters. Without constraints, models confidently produce plausible-but-invalid values. The trade-off is that strict mode may conflict with parallel tool calls on some providers; disable parallel calls when exact schema conformance is required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T04:54:41.377216+00:00— report_created — created