Skip to main content

2 docs tagged with "structured"

View all tags

Nested Structured Output with Pydantic

In this lesson, you'll learn how to parse complex, nested responses into structured Python objects using Pydantic models and the OpenAI parse() method. Insta...

Structured Output Using Pydantic

In this lesson, you’ll learn how to extract structured data from user input using a Pydantic model with OpenAI’s parse() method. Install the required packages: