CodeBaobab
COURSE 6 OF 8

Durable Agent Execution

Resume interrupted agents without repeating a consequential tool call.

Background reading
Free course preview

A checkpoint is not a transaction with a tool

An agent can call a tool successfully and crash before recording the result. Resuming from its previous checkpoint may repeat the call. Give each consequential action a stable operation ID. The tool must use that ID to return the original result when the same action is retried.

Store thread and tenant identity explicitly. Check authorization in the tool boundary; a model-generated argument must not decide which customer data the caller may access.

Continue learning

Continue with Pro

Get Pro on codebaobab.com.

See Pro plans
Complete course

What you will learn next

  1. 01Control the work an agent may do
  2. 02Further reading
  3. 03A refund tool times out
  4. 04Review
  5. 05References