Enum AgentStatus
High-level lifecycle state of an Agent.
public enum AgentStatus
Fields
Cancelling = 8A cancellation request is in progress; the agent is attempting to stop ongoing work.
InitializationFailed = 2Initialization failed and the agent cannot process requests until the error is handled or initialization is retried.
Initializing = 1The agent is performing one-time initialization logic.
LoadingChat = 3The agent is loading conversation data (history, items, or metadata).
None = 0Uninitialized state; no setup has been performed yet.
Processing = 7The agent is actively processing a request (model calls, tools, or both).
Ready = 5The agent is idle and ready to accept new input.
RetrievingAccessTokens = 4The agent is retrieving or refreshing access tokens (for example, OAuth credentials).
Terminating = 9The agent is shutting down and will not accept any new work.
WaitingForToolOutput = 6The agent is waiting for external tool outputs before it can resume or finalize a response.
Remarks
- None – Default state before initialization.
- Initializing / InitializationFailed – Setup phase.
- LoadingChat / RetrievingAccessTokens – Loading conversation and credentials.
- Ready / WaitingForToolOutput – Idle but ready to process work.
- Processing / Cancelling – Actively handling a request.
- Terminating – Shutting down and releasing resources.