"Failed" Is a Lie Your .NET Agent Tells the Model: Four Outcomes Every Tool Call Needs
Most tool functions I see in agent demos return one of two things: a result, or an exception. Microsoft.Extensions.AI then turns that exception into a polite little string for the model, something like Error: Function failed. For a read, that's fine. For a write, it's a trap. Picture a refund tool.…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-13 12:57 · DEV Community — AI
"Failed" Is a Lie Your .NET Agent Tells the Model: Four Outcomes Every Tool Call Needs