Skip to content

When an AI agent fails

AI agents fail: a provider goes down, a tool errors, a task stalls. What the platform retries on its own, what it hands back, and how to recover.

Staying in control · 8 of 92 min readUpdated

In 30 seconds

  1. 1Outages move a run to the next model. Tool errors go back to the agent.
  2. 2A task is tried three times, then stops at failed with a reason.
  3. 3Failed or cancelled work can be run again from where you see it.

On this page

  1. What is absorbed on its own
  2. What stops, and how
  3. What you can do
  4. Set up to recover
On this page4 sections · 2 min
  1. What is absorbed on its own
  2. What stops, and how
  3. What you can do
  4. Set up to recover

The short answer

AI agents fail in a few predictable ways: a model provider has an outage, a tool returns an error, a key stops working, or a task stalls. A good platform absorbs outages, tool errors and dead keys on its own, stops cleanly on the rest, and tells you what happened. In Infinized every failure leaves a record, and failed work can be run again from the place where you see it.

What is absorbed on its own

  • A provider has a bad moment. Temporary errors are retried within the run. If a provider is rate-limited, overloaded or down, the run moves to the next model in the colleague's fallback chain.
  • A tool returns an error. The error goes back to the colleague as text, so it can try another way instead of stopping.
  • A key stops working. The key is taken out of use, later runs go to another connected provider, and owners and admins are told.

What stops, and how

  • A task is tried three times, with a pause in between. After that it stops at failed with a readable reason.
  • A task that stalls in progress for thirty minutes is marked failed, and the audit trail says so.
  • A chat reply that stops making progress is ended after a few minutes. A reply that already has content is kept.
  • A subtask that fails stops its parent at blocked, so a half-finished result is not presented as done.

What you can do

Run a failed or cancelled task again from its page or from the work overview, or cancel one that should not continue. Retry a failed chat reply from the conversation, and retry or clear failed background jobs from the observability page.

Set up to recover

  • Give important colleagues a fallback chain across providers.
  • Use evals to catch the failures that are not errors: answers that are simply wrong.
  • Keep an eye on the monitoring alerts for keys and integrations.

See it at work in your organisation.

We start by listening to your question. Then we show you a demo that fits your organisation.

  • Approvals from the first run
  • Budgets that stop
  • Hosting in the Netherlands