Available on crate features
agents and codeact only.Expand description
The suspend/resume payload, persisted in session state.
There is no side store. When the agent suspends (a confirmation-gated or
long-running tool call), it serializes the live interpreter continuation
(Monty snapshot) plus the loop transcript into a CodeActCheckpoint and
writes it to session state under PENDING_STATE_KEY via an event’s
state_delta. On the next invocation CodeActAgent::run reads it back and
resumes — the same “save to session, rebuild, continue” model as
LlmAgent, with the snapshot standing in for the part of
the continuation that can’t be reconstructed from message history.
Structs§
- Code
ActCheckpoint - A serializable snapshot of a suspended CodeAct run, stored in session state.
- Pending
Tool Call - The tool call a suspended run is waiting on.
Enums§
- Disposition
- Why a checkpoint was written, and how to resume from it.
- Resolution
Record - The result to feed back into a resumed continuation.
Constants§
- PENDING_
STATE_ KEY - Session-state key under which the pending checkpoint is stored.