--- title: "StopServerToolsWhenCondition" --- A single condition that, when met, halts the server-tool agent loop. ## Supported Types ### `components.StopServerToolsWhenFinishReasonIs` ```python value: components.StopServerToolsWhenFinishReasonIs = /* values here */ ``` ### `components.StopServerToolsWhenHasToolCall` ```python value: components.StopServerToolsWhenHasToolCall = /* values here */ ``` ### `components.StopServerToolsWhenMaxCost` ```python value: components.StopServerToolsWhenMaxCost = /* values here */ ``` ### `components.StopServerToolsWhenMaxTokensUsed` ```python value: components.StopServerToolsWhenMaxTokensUsed = /* values here */ ``` ### `components.StopServerToolsWhenStepCountIs` ```python value: components.StopServerToolsWhenStepCountIs = /* values here */ ```