AgentDefinition.StopWhen:
HasToolCall(...) and FinishReasonIs(...) provide event-based limits. Keep a step or duration bound even when using token or cost limits, because those depend on reported usage.
Bound .NET agent work by steps, tokens, cost, duration, tools, or finish reason.
AgentDefinition.StopWhen:
HasToolCall(...) and FinishReasonIs(...) provide event-based limits. Keep a step or duration bound even when using token or cost limits, because those depend on reported usage.