StopServerToolsWhenCondition - Python SDK

StopServerToolsWhenCondition method reference

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

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

components.StopServerToolsWhenHasToolCall

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

components.StopServerToolsWhenMaxCost

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

components.StopServerToolsWhenMaxTokensUsed

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

components.StopServerToolsWhenStepCountIs

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