Skip to content

AgentRunState

type AgentRunState =
| {
status: "ready";
}
| {
interrupt: PromptInterrupt;
status: "interrupted";
toolCall: PromptOutputToolCall;
};

Defined in: agent/src/agent/agent.run.ts:62

Where the run currently stands, derived entirely from the prompt — so a run reconstructed from persisted prompts (e.g. after a restart) reports the same state the original instance did. While interrupted, continue via AgentRun.resume or AgentRun.reject.