Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Retry

Also: retries

In plain words

Trying a failed step again, usually after a short wait.

The fuller definition

A retry repeats an operation after a failure under a defined policy, often with waiting time and a maximum number of attempts.

How it fits together
  1. Failure

    Classify the error

  2. Policy

    Wait, stop, or escalate

  3. Next attempt

    Respect duplicate protection

A simplified relationship, not a screenshot or a complete design.

A concrete example

A temporary API timeout leads to a later attempt, while an authorization error is escalated for review.

The distinction that matters

Blindly retrying can duplicate side effects, increase costs, or repeat a permanent failure.

Related terms

Where it is taught

Prompts, skills, workflows, and agents

Source and further reading

Anthropic · Building effective agents

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC