Skip to main content
The Python SDK and docs are currently in beta. Report issues on GitHub.
A single condition that, when met, halts the server-tool agent loop.

Supported Types

components.StopServerToolsWhenFinishReasonIs

value: components.StopServerToolsWhenFinishReasonIs = /* values here */

components.StopServerToolsWhenHasToolCall

value: components.StopServerToolsWhenHasToolCall = /* values here */

components.StopServerToolsWhenMaxCost

value: components.StopServerToolsWhenMaxCost = /* values here */

components.StopServerToolsWhenMaxTokensUsed

value: components.StopServerToolsWhenMaxTokensUsed = /* values here */

components.StopServerToolsWhenStepCountIs

value: components.StopServerToolsWhenStepCountIs = /* values here */