Skip to main content
A single condition that, when met, halts the server-tool agent loop.

Supported Types

components.StopServerToolsWhenFinishReasonIs

components.StopServerToolsWhenHasToolCall

components.StopServerToolsWhenMaxCost

components.StopServerToolsWhenMaxTokensUsed

components.StopServerToolsWhenStepCountIs