Table of Contents

Enum AgentStopReason

Namespace
Emissary
Assembly
Emissary.dll

Why an agent run ended.

public enum AgentStopReason

Fields

AwaitingApproval = 5

The run paused at a human-in-the-loop gate; see Suspension.

BudgetExceeded = 4

The run hit TokenBudget.

Completed = 0

The model finished its answer.

MaxTokens = 1

The response hit MaxTokens.

Paused = 6

A 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 = 2

The model declined to answer.

TurnLimit = 3

The run hit MaxTurns before converging.