<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Divyansh Rai</title>
    <description>The latest articles on DEV Community by Divyansh Rai (@divyansh_rai_8ac27714ba7e).</description>
    <link>https://dev.to/divyansh_rai_8ac27714ba7e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4080270%2F7be7f89f-7803-4019-9eb4-e3eaf0b8cae6.jpg</url>
      <title>DEV Community: Divyansh Rai</title>
      <link>https://dev.to/divyansh_rai_8ac27714ba7e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divyansh_rai_8ac27714ba7e"/>
    <language>en</language>
    <item>
      <title>How do you catch it when a model update changes your agent's tool calls?</title>
      <dc:creator>Divyansh Rai</dc:creator>
      <pubDate>Sun, 16 Aug 2026 15:36:06 +0000</pubDate>
      <link>https://dev.to/divyansh_rai_8ac27714ba7e/how-do-you-catch-it-when-a-model-update-changes-your-agents-tool-calls-1bpf</link>
      <guid>https://dev.to/divyansh_rai_8ac27714ba7e/how-do-you-catch-it-when-a-model-update-changes-your-agents-tool-calls-1bpf</guid>
      <description>&lt;p&gt;Your agent calls &lt;code&gt;get_weather(city="London")&lt;/code&gt;. The provider ships a new model version. Now it calls &lt;code&gt;get_weather(location="London, UK")&lt;/code&gt;, your downstream parser breaks, and nothing in CI told you.&lt;/p&gt;

&lt;p&gt;I built a small library for exactly this failure:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;pip install toolcontract&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/Divyansh2202/toolcontract" rel="noopener noreferrer"&gt;https://github.com/Divyansh2202/toolcontract&lt;/a&gt;&lt;br&gt;
PyPI:   &lt;a href="https://pypi.org/project/toolcontract/" rel="noopener noreferrer"&gt;https://pypi.org/project/toolcontract/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You pin a golden set of expected tool calls as a contract, re-run them against the live model, and get pass / fail / inconclusive with a diff showing what changed.&lt;/p&gt;

&lt;p&gt;It is not an eval framework. promptfoo, DeepEval and the rest score whether an output is &lt;em&gt;good&lt;/em&gt; — semantic quality, usually judged by another model. toolcontract asks a narrower, cheaper question: is the tool call structurally the same as the one I pinned? Same tool, same argument shape, same trajectory. That is a regression test, not an eval, and it is the question that matters when a provider bumps a version under you.&lt;/p&gt;

&lt;p&gt;Details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pass / fail / INCONCLUSIVE — anything the structural comparators cannot resolve is never silently turned into a pass or a fail&lt;/li&gt;
&lt;li&gt;trajectory matching: strict, unordered, subset, superset&lt;/li&gt;
&lt;li&gt;optional argument support, so you can assert a field must stay absent&lt;/li&gt;
&lt;li&gt;works with OpenAI, Anthropic, anything OpenAI-compatible, or via LiteLLM&lt;/li&gt;
&lt;li&gt;thin pytest plugin, and a CLI that produces the same verdicts without pytest&lt;/li&gt;
&lt;li&gt;MIT&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Happy to hear where this breaks. It's v0.1.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>opensource</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
