ai newsDi., 1. Dez.

What an AI agent needs from your API error

On a self-driving car, a sensor reading is never trusted just because it arrived. A tracker following a car on the road expects it to move a little between two frames. If a detection suddenly jumps three lanes in 100 milliseconds, the tracker does not steer around a ghost. It flags the reading as n

dev.toDienstag 00:14 · 01.12.1 Min. Lesezeit
Bild: dev.to

On a self-driving car, a sensor reading is never trusted just because it arrived. A tracker following a car on the road expects it to move a little between two frames. If a detection suddenly jumps three lanes in 100 milliseconds, the tracker does not steer around a ghost. It flags the reading as noise and keeps the last state it trusted.

I work on perception for autonomous vehicles, and this rule is so basic in robotics that nobody writes blog posts about it. In AI agents, it is often missing.

An agent chains steps. A tool returns something, the model reads it, and the next step acts on it. When the tool returns an empty list, a half-parsed JSON or an error page with status 200, many agents read it as real data and keep going. The bad value travels three steps down the chain and turns into a confident, wrong answer.

The model did nothing wrong. It received noise and nobody filtered it.

The most important rule from the tracker: a rejected reading becomes "no data", never "use it anyway". For an agent, "no data" triggers the fallback path: retry the tool, use a cached value, or tell the user what is missing.

An agent that says "I could not get a reliable price from the supplier" is more useful than one that quotes a negative price with full confidence.

Output validation is one of five habits from self-driving cars I apply to AI agents, and I present all five at Build Stuff 2026 in Vilnius on Thursday 3 December at 17:15 in Zeta 1.

Tickets are at https://buildstuff.events, and the code 2026SPEAKER_20 gives 20% off.

Quelle: dev.to (dev.to). Original öffnen