Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Bound .NET agent work by steps, tokens, cost, duration, tools, or finish reason.
AgentDefinition.StopWhen
StopWhen = new[] { AgentSdk.StepCountIs(12), AgentSdk.MaxTokensUsed(40_000), AgentSdk.MaxCost(2), AgentSdk.MaxDuration(TimeSpan.FromMinutes(1)), };
HasToolCall(...)
FinishReasonIs(...)
Was this page helpful?