instructorEasy Playground

Structured outputs from LLMs using Pydantic models

Getting started with instructorRun locally
Install
pip install instructor
Python CodeRun locally
Expected Output
# Expected output shown below
# (Run locally with: instructor)

instructor is a third-party package. Structured outputs from LLMs using Pydantic models. Install with: pip install instructor

Challenge

Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?