Enum AgentStopReason
- Namespace
- Emissary
- Assembly
- Emissary.dll
Why an agent run ended.
public enum AgentStopReason
Fields
AwaitingApproval = 5The run paused at a human-in-the-loop gate; see Suspension.
BudgetExceeded = 4The run hit TokenBudget.
Completed = 0The model finished its answer.
MaxTokens = 1The response hit MaxTokens.
Paused = 6A server-side tool (web search) paused the turn before the model finished. The answer so far is in the conversation but is incomplete: continue by running the agent again on Conversation.
Refusal = 2The model declined to answer.
TurnLimit = 3The run hit MaxTurns before converging.