StopServerToolsWhenCondition - TypeScript SDK
StopServerToolsWhenCondition type definition
A single condition that, when met, halts the server-tool agent loop.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
StopServerToolsWhenCondition type definition
models.StopServerToolsWhenFinishReasonIsconst value: models.StopServerToolsWhenFinishReasonIs = {
reason: "<value>",
type: "finish_reason_is",
};
models.StopServerToolsWhenHasToolCallconst value: models.StopServerToolsWhenHasToolCall = {
toolName: "<value>",
type: "has_tool_call",
};
models.StopServerToolsWhenMaxCostconst value: models.StopServerToolsWhenMaxCost = {
maxCostInDollars: 1543.31,
type: "max_cost",
};
models.StopServerToolsWhenMaxTokensUsedconst value: models.StopServerToolsWhenMaxTokensUsed = {
maxTokens: 577706,
type: "max_tokens_used",
};
models.StopServerToolsWhenStepCountIsconst value: models.StopServerToolsWhenStepCountIs = {
stepCount: 5,
type: "step_count_is",
};