Errors & recovery
Real situations from building agents - with the answer and why.
- A tool call fails with an error.
- A streamed generation fails mid-way.
- A tool call returns HTTP 400 “invalid parameter: date must be ISO-8601”.
- Your fleet of agents all hit a 429 rate-limit at once and every one immediately retries on a fixed 1-second timer.
- An agent processes a batch of 100 records.
- A payment tool times out.
- After a tool returns an error, the agent calmly calls the very same tool with the very same arguments, again and again.
- Your main AI provider fails halfway through a streamed answer; the user already sees the first paragraph.
- A nightly batch of 20,000 documents on DeepSeek stopped at document 12,000 with HTTP 402.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.