agents

Rewind an agent.

Changed on

Restores the agent to an earlier turn's checkpoint. Requires the machine:create scope.

post/v1/agents/{name}/rewind

Request

Path parameters

namestring required

Session name

Request body

turninteger required

Response

Session restored to the state right after the turn

createdAtstring required
errorstring nullable
harnessstring required
machineIdstring nullable

The machine the session currently runs on (it changes on rewind).

modelstring nullable
namestring required
runningTurninteger nullable

The turn in progress, if any.

statusstring required

starting during setup, turning during a turn, cancelling, rewinding, forking, pausing, resuming, ready, deleting, or failed; stale work may read as interrupted.

Changes