Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Idempotency

Also: idempotent

In plain words

A property of an action: doing it twice has the same effect as doing it once. This helps when a system retries a task.

The fuller definition

An operation is idempotent when repeating it has the same intended effect as performing it once. This is useful when retries or duplicate triggers occur.

How it fits together
  1. First request

    Create the result

  2. Repeated ID

    Recognize prior work

  3. Effect

    No duplicate creation

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

A concrete example

A workflow uses a stable request ID so a retry does not create a second identical output record.

The distinction that matters

Not every operation is naturally idempotent; sending a message twice may create two messages.

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