

<h3 id="22-schemas">2.2 Schemas<a class="headerlink" href="#22-schemas" title="Permanent link">&para;</a></h3>
<p>Schemas are used to define structured outputs for language model responses using Pydantic models.</p>
<h4 id="defining-schemas">Defining Schemas<a class="headerlink" href="#defining-schemas" title="Permanent link">&para;</a></h4>
<p>Create a <code>.py</code> file (e.g., <code>schemas.py</code>) with Pydantic models representing the expected structure of your data.</p>
<p><strong>Example (<code