You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Each helper wraps the generated Pydantic models in <code>acp.schema</code>. Single-value discriminator fields (<code>type</code>, <code>sessionUpdate</code>, and friends) have schema-derived defaults, so direct construction is concise too—for example, <code>TextContentBlock(text="Hello")</code>. ACP's serializers preserve those required tags on the wire while continuing to omit unrelated defaults. Golden fixtures in <code>tests/test_golden.py</code> ensure the helpers stay in sync with future schema revisions.</p>
996
-
<p>High-level connections serialize models this way automatically. If you are implementing a custom transport, use <code>acp.utils.serialize_params(model)</code> for outbound payloads; calling <code>model_dump(exclude_defaults=True)</code> directly would omit the defaulted discriminator fields.</p>
995
+
<p>Each helper wraps the generated Pydantic models in <code>acp.schema</code>, so the right discriminator fields (<code>type</code>, <code>sessionUpdate</code>, and friends) are always populated. That keeps examples readable while maintaining the same validation guarantees as constructing the models directly. Golden fixtures in <code>tests/test_golden.py</code> ensure the helpers stay in sync with future schema revisions.</p>
997
996
<h2id="optional-talk-to-the-gemini-cli">Optional — Talk to the Gemini CLI<aclass="headerlink" href="#optional-talk-to-the-gemini-cli" title="Permanent link">¶</a></h2>
998
997
<p><em>Have the Gemini CLI installed? Run the bridge to exercise permission flows.</em></p>
999
998
<p>If you have the Gemini CLI installed and authenticated:</p>
0 commit comments