Anthropic · CCAR-F
Structured output and validation
CCAR-F · Lesson 14 of 18 · 1:47:45
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
In this lesson
Prepare for the Claude Certified Architect – Foundations exam, on the exam guide version 1.0, effective July 2026. In this lesson: extraction tools with JSON schemas and strict mode, tool_choice for structured output, structured outputs on the newest models, nullable fields, enums with unclear and other, normalization rules, semantic validation with calculated and stated totals, retries with error feedback and their limits, and detected_pattern. Includes three original practice questions.
Preview the topics
- Kestrel’s invoice schema requires a purchase order number, and Claude sometimes invents one for invoices that have none. What is the best fix?
- Kestrel’s validator finds that an invoice’s line items add up to 412 dollars, while the extracted total is 421. What is the most useful next step?
- A retry loop keeps failing on the delivery address of some invoices. These invoices never include the address, which appears only in a separate shipping document. What should the pipeline do?