▲
Claude Academy
Tracks
Quizzes
Exam Sim
Flashcards
Videos
Vault
Dashboard
Sign in
☰
Domain 4 (Prompt Engineering & Structured Output)
1 / 18
Your structured-output JSON is inconsistent — sometimes missing fields, sometimes the wrong types. Which is the **most reliable** fix?
A.
Add stricter wording in the system prompt asking for valid JSON
B.
Switch to forced tool use with `tool_choice = {type: "tool", name}` and the JSON schema in `input_schema`
C.
Use prefill with `{`
D.
Switch to a bigger model
← Back
Check answer