Skip to main content

Code

structured_output.py
Set TOGETHER_MODEL_ID to a current model with structured-output support.

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run Agent

Save the code above as structured_output.py, then run: