Enum AgentStatus
High-level lifecycle state of an Agent.
Namespace: Glitch9.AIDevKit.Agents
Assembly: Glitch9.AIDevKit.dll
Syntax
public enum AgentStatus
Remarks
- None Default state before initialization.
- Initializing / InitializationFailed Setup phase.
- LoadingConversation / EnsuringAccessTokens Loading conversation and credentials.
- Ready / WaitingForToolOutput Idle but ready to process work.
- GeneratingResponse / Cancelling Actively handling a request.
- Terminating Shutting down and releasing resources.
Fields
| Name | Description |
|---|---|
| Cancelling | A cancellation request is in progress; the agent is attempting to stop ongoing work. |
| EnsuringAccessTokens | The agent is ensuring access tokens for mcp tools (for example, OAuth credentials). |
| ExecutingTool | The agent is calling external tools as part of processing a request. |
| GeneratingResponse | The agent is generating a response to user input. |
| InitializationFailed | Initialization failed and the agent cannot process requests until the error is handled or initialization is retried. |
| Initializing | The agent is performing one-time initialization logic. |
| LoadingConversation | The agent is loading conversation data (history, items, or metadata). |
| LoadingConversationFailed | Loading the conversation data failed. |
| None | Uninitialized state; no setup has been performed yet. |
| Ready | The agent is idle and ready to accept new input. |
| Terminating | The agent is shutting down and will not accept any new work. |
| Thinking | Streaming response only. The agent is thinking about how to respond, but has not yet started generating text. Thinking is often referred as "reasoning" in agent literature. |
| Transcribing | Streaming response only. The agent is transcribing spoken input into text. |
| WaitingForToolOutput | The agent is waiting for external tool outputs before it can resume or finalize a response. |