Lesson overview

Structured responses and business rules

Structured responses and business rules — OpenAI tools and agents without paid execution. Use text.format for final output; Handle refusal and incomplete status before parsing; Business invariants follow schema checks. Practical assignment: Practice: Structured responses and business rules.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Use text.format for final output
  • Handle refusal and incomplete status before parsing
  • Business invariants follow schema checks

Practical assignment

Practice: Structured responses and business rules

The full lesson is available as part of the course.

Continue to learning

Course outline

  1. Architecture and API budget
  2. Function calling and server-side dispatch
  3. Tool loop and call_id
  4. Structured responses and business rules
  5. Approval and side-effect boundaries
  6. Errors, evals and final harness