Supported Types
StopServerToolsWhenFinishReasonIs
StopServerToolsWhenHasToolCall
StopServerToolsWhenMaxCost
StopServerToolsWhenMaxTokensUsed
StopServerToolsWhenStepCountIs
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field: