pub enum AgentState {
Starting,
Working,
AwaitingInput,
Idle,
Queued,
Completed,
Failed,
Declined,
Timeout,
Cancelled,
Interrupted,
Unknown,
}Expand description
What a delegated run, a background job, or a session is doing, as far as
SCV can tell. A state a client does not know parses as unknown, which
also means SCV itself cannot tell.
Variants§
Starting
Launching: starting the process, its handshake, or its session.
Working
A turn runs and the agent reports activity.
AwaitingInput
The agent waits for a person: an approval request it relayed, or the session’s own approval request, is unanswered.
Idle
A live agent (an ACP server or nested SCV) that waits between turns for its next prompt; or a session with no turn running.
Queued
A prompt that waits for its conversation’s running turn.
Completed
The turn finished and the agent completed its task.
Failed
The run or job failed.
Declined
The agent’s model refused the request.
Timeout
The run reached its time limit.
Cancelled
Stopped on request.
Interrupted
Its SCV process or session stopped before it finished: a crash, a restart, or the session’s client going away.
Unknown
SCV cannot tell: a turn has reported nothing for a long while, or the process that owns it cannot be observed. Also any state this client does not know.