<?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: 神崎恵</title>
    <description>The latest articles on DEV Community by 神崎恵 (@springofwindslabs).</description>
    <link>https://dev.to/springofwindslabs</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%2F4260340%2F3cdd17e2-967b-4e46-9d4b-411280849be8.png</url>
      <title>DEV Community: 神崎恵</title>
      <link>https://dev.to/springofwindslabs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/springofwindslabs"/>
    <language>en</language>
    <item>
      <title>How to evaluate your agent's error recovery with a free API: fetch, run, score</title>
      <dc:creator>神崎恵</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:51:17 +0000</pubDate>
      <link>https://dev.to/springofwindslabs/how-to-evaluate-your-agents-error-recovery-with-a-free-api-fetch-run-score-de4</link>
      <guid>https://dev.to/springofwindslabs/how-to-evaluate-your-agents-error-recovery-with-a-free-api-fetch-run-score-de4</guid>
      <description>&lt;p&gt;Most agent evaluations stop at the happy path. Your agent calls a tool, the tool works, everyone moves on. But production agents rarely die on the happy path — they die on the recovery: the rate limit, the timeout, the 500, the malformed response.&lt;/p&gt;

&lt;p&gt;In my &lt;a href="https://dev.to/springofwindslabs/teaching-a-15b-model-to-recover-from-tool-failures-160-to-3460-with-lora-on-recovery-23ed"&gt;previous post&lt;/a&gt;, I measured how badly a small model handles those moments (base model: 1/60 recoveries). This post is the practical companion: how to run the same kind of evaluation on &lt;em&gt;your&lt;/em&gt; agent, using the free scoring API I built from that experiment.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;p&gt;The design constraint is simple: &lt;strong&gt;the golden data never leaves my side.&lt;/strong&gt; You can't download the expected recoveries, and the API never returns them. That keeps the scores honest — there's nothing to memorise or game.&lt;/p&gt;

&lt;p&gt;The flow is three steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fetch&lt;/strong&gt; the task list. Each task is a broken MCP-style trajectory: a conversation and tool set where a tool call has errored, timed out, hit a rate limit, or returned malformed output. You get the prompts only — no answers, no category labels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run&lt;/strong&gt; your own agent or model on each task and collect its recovery output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Score&lt;/strong&gt;: POST the outputs back. For each record you get pass/fail and, for failures, a failure classification. Fetching tasks doesn't consume scoring quota; only scoring calls count.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  A minimal walkthrough (Python)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;

&lt;span class="no"&gt;BASE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://springofwinds-lab.p.rapidapi.com"&lt;/span&gt;
&lt;span class="no"&gt;HEADERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"X-RapidAPI-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"YOUR_RAPIDAPI_KEY"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"X-RapidAPI-Host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"springofwinds-lab.p.rapidapi.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# 1. Fetch the tasks (does not consume scoring quota)&lt;/span&gt;
&lt;span class="n"&gt;tasks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{BASE}/v1/tasks"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;HEADERS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"tasks"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# 2. Run YOUR agent on each task and collect its recovery output&lt;/span&gt;
&lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;tasks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;run_my_agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"conversation"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"tools"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# your code&lt;/span&gt;
    &lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"task_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"task_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"output"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 3. Score (up to 100 records per call)&lt;/span&gt;
&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{BASE}/v1/score"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;HEADERS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"records"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 4. Aggregate failures by category — this is where it gets useful&lt;/span&gt;
&lt;span class="n"&gt;fails&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"failure_category"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"results"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fails&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each record pairs a &lt;code&gt;task_id&lt;/code&gt; with your agent's recovery output for that task; the exact field layout is in the API documentation on RapidAPI.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reading the results
&lt;/h3&gt;

&lt;p&gt;The per-record verdict matters less than the pattern. Aggregate the failures and you'll usually find one category doing most of the damage. The categories are the failure types the tasks are built from: &lt;code&gt;rate_limit&lt;/code&gt;, &lt;code&gt;conflict_lock&lt;/code&gt;, &lt;code&gt;auth_permission&lt;/code&gt;, &lt;code&gt;not_found&lt;/code&gt;, &lt;code&gt;invalid_argument&lt;/code&gt;, and &lt;code&gt;other&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In my own run, &lt;code&gt;rate_limit&lt;/code&gt; was the weakest by a wide margin (3/10 even after fine-tuning) — backoff-and-wait behaviour is exactly the kind of thing models don't learn from happy-path data. Finding your agent's equivalent blind spot is the point of the exercise.&lt;/p&gt;

&lt;h3&gt;
  
  
  Limits, honestly
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The free tier is &lt;strong&gt;100 scoring calls per month&lt;/strong&gt;, up to 100 records per call. Task fetching is unlimited and free.&lt;/li&gt;
&lt;li&gt;The task set covers &lt;strong&gt;MCP-style failure recovery only&lt;/strong&gt;. It won't tell you anything about your agent's planning, coding, or tool selection on the happy path — by design.&lt;/li&gt;
&lt;li&gt;Pass/fail is a strict check against held-out golden recoveries. A "fail" can occasionally mean "a different recovery than the golden one", not necessarily a wrong one. Treat the aggregate pattern as the signal, not any single record.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Links
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Free evaluation API (RapidAPI): &lt;a href="https://rapidapi.com/%E7%A5%9E%E5%B4%8E%E6%81%B5/api/springofwinds-lab" rel="noopener noreferrer"&gt;https://rapidapi.com/%E7%A5%9E%E5%B4%8E%E6%81%B5/api/springofwinds-lab&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The experiment behind it: &lt;a href="https://dev.to/springofwindslabs/teaching-a-15b-model-to-recover-from-tool-failures-160-to-3460-with-lora-on-recovery-23ed"&gt;https://dev.to/springofwindslabs/teaching-a-15b-model-to-recover-from-tool-failures-160-to-3460-with-lora-on-recovery-23ed&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Full self-pilot report: &lt;a href="https://springofwindslabs.github.io/springofwinds-datasets/pilot-report.html" rel="noopener noreferrer"&gt;https://springofwindslabs.github.io/springofwinds-datasets/pilot-report.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Datasets (free 50-row trials): &lt;a href="https://huggingface.co/springofwindslabs" rel="noopener noreferrer"&gt;https://huggingface.co/springofwindslabs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run it, tell me which category your agent is worst at. I keep betting on rate limits, and I keep being right.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>agents</category>
    </item>
    <item>
      <title>Teaching a 1.5B model to recover from tool failures: 1/60 to 34/60 with LoRA on recovery trajectories</title>
      <dc:creator>神崎恵</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:47:58 +0000</pubDate>
      <link>https://dev.to/springofwindslabs/teaching-a-15b-model-to-recover-from-tool-failures-160-to-3460-with-lora-on-recovery-23ed</link>
      <guid>https://dev.to/springofwindslabs/teaching-a-15b-model-to-recover-from-tool-failures-160-to-3460-with-lora-on-recovery-23ed</guid>
      <description>&lt;p&gt;Most agent benchmarks measure the happy path: call the right tool, get a clean result, move on. Production agents don't fail there. They fail at the recovery — the 500 error, the rate limit, the timeout, the malformed JSON that comes back from a tool that was supposed to be reliable.&lt;/p&gt;

&lt;p&gt;I wanted to know how much of that failure is a &lt;em&gt;data&lt;/em&gt; problem. So I ran a small, fully measured experiment.&lt;/p&gt;

&lt;h3&gt;
  
  
  Setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tasks&lt;/strong&gt;: 60 held-out MCP-style failure-recovery tasks. Each task hands the model a broken trajectory — a tool call that errored, timed out, hit a rate limit, or returned malformed output — and asks for the recovery step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model&lt;/strong&gt;: Qwen2.5-1.5B-Instruct, base vs. LoRA fine-tuned.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training&lt;/strong&gt;: 2,000 rows of recovery trajectories (LoRA). The evaluation tasks were held out from training.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scoring&lt;/strong&gt;: a recovery counts if the model's next action is valid and moves the task forward; "completed" means the task reaches its goal state. Schema validity is checked separately.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Results
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Base&lt;/th&gt;
&lt;th&gt;LoRA&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Recovered&lt;/td&gt;
&lt;td&gt;1/60&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;34/60 (56.7%)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Completed&lt;/td&gt;
&lt;td&gt;1/60&lt;/td&gt;
&lt;td&gt;31/60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Schema errors&lt;/td&gt;
&lt;td&gt;0/60&lt;/td&gt;
&lt;td&gt;1/60&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Recovery by failure type (LoRA; 10 tasks per type): rate_limit 3/10 · conflict_lock 5/10 · auth_permission 8/10 · not_found 6/10 · invalid_argument 7/10 · other 5/10. The base model recovered 0/10 in every type except "other" (1/10).&lt;/p&gt;

&lt;p&gt;The base model almost never recovers. My read — interpretation, not something the aggregate numbers prove — is that it doesn't know what a good recovery step looks like, so it falls back to generic behaviour. Training on 2,000 recovery trajectories was associated with recovery rising to 34/60 on the same held-out tasks.&lt;/p&gt;

&lt;h3&gt;
  
  
  Honest limits
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rate limits are still the weakest category: 3/10.&lt;/strong&gt; Backoff-and-wait behaviour is underrepresented in the training rows, and it shows.&lt;/li&gt;
&lt;li&gt;This is one small model and one run of 60 tasks. Treat the numbers as a signal, not a benchmark.&lt;/li&gt;
&lt;li&gt;LoRA also produced the run's only schema error (1/60, versus 0/60 for the base). That is one observation from one run — not enough to generalise, but worth watching.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why I'm publishing this
&lt;/h3&gt;

&lt;p&gt;The interesting part isn't the LoRA trick — it's that recovery behaviour is teachable with a modest amount of the &lt;em&gt;right&lt;/em&gt; data, and measurable with a small held-out task set. If you evaluate agents, evaluate the recovery, not just the first attempt.&lt;/p&gt;

&lt;p&gt;I turned the scoring side of this experiment into a free API: you fetch the task list, run your own agent, and POST its outputs. You get pass/fail and a failure classification per record. The golden data never leaves my side — the API returns scores, not answers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Free evaluation API (RapidAPI): &lt;a href="https://rapidapi.com/%E7%A5%9E%E5%B4%8E%E6%81%B5/api/springofwinds-lab" rel="noopener noreferrer"&gt;https://rapidapi.com/%E7%A5%9E%E5%B4%8E%E6%81%B5/api/springofwinds-lab&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Full self-pilot report: &lt;a href="https://springofwindslabs.github.io/springofwinds-datasets/pilot-report.html" rel="noopener noreferrer"&gt;https://springofwindslabs.github.io/springofwinds-datasets/pilot-report.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Datasets (free 50-row trials): &lt;a href="https://huggingface.co/springofwindslabs" rel="noopener noreferrer"&gt;https://huggingface.co/springofwindslabs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you run the eval, I'd genuinely like to hear which failure category your agent is worst at. My bet: rate limits.&lt;/p&gt;

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