ChatToolChoice - TypeScript SDK
ChatToolChoice type definition
Tool choice configuration
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ChatToolChoice type definition
models.ChatToolChoiceNoneconst value: models.ChatToolChoiceNone = "none";
models.ChatToolChoiceAutoconst value: models.ChatToolChoiceAuto = "auto";
models.ChatToolChoiceRequiredconst value: models.ChatToolChoiceRequired = "required";
models.ChatNamedToolChoiceconst value: models.ChatNamedToolChoice = {
function: {
name: "get_weather",
},
type: "function",
};
models.ChatServerToolChoiceconst value: models.ChatServerToolChoice = {
type: "openrouter:web_search",
};