OpenAIResponsesToolChoiceUnion - TypeScript SDK
OpenAIResponsesToolChoiceUnion type definition
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
OpenAIResponsesToolChoiceUnion type definition
models.OpenAIResponsesToolChoiceAutoconst value: models.OpenAIResponsesToolChoiceAuto = "auto";
models.OpenAIResponsesToolChoiceNoneconst value: models.OpenAIResponsesToolChoiceNone = "none";
models.OpenAIResponsesToolChoiceRequiredconst value: models.OpenAIResponsesToolChoiceRequired = "required";
models.OpenAIResponsesToolChoiceFunctionconst value: models.OpenAIResponsesToolChoiceFunction = {
name: "<value>",
type: "function",
};
models.OpenAIResponsesToolChoiceconst value: models.OpenAIResponsesToolChoice = {
type: "web_search_preview",
};
models.ToolChoiceAllowedconst value: models.ToolChoiceAllowed = {
mode: "auto",
tools: [
{
"name": "get_weather",
"type": "function",
},
],
type: "allowed_tools",
};
models.OpenAIResponsesToolChoiceApplyPatchconst value: models.OpenAIResponsesToolChoiceApplyPatch = {
type: "apply_patch",
};
models.OpenAIResponsesToolChoiceShellconst value: models.OpenAIResponsesToolChoiceShell = {
type: "shell",
};