ToolChoice - TypeScript SDK

ToolChoice type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

models.ToolChoiceAuto

1const value: models.ToolChoiceAuto = {
2 type: "auto",
3};

models.ToolChoiceAny

1const value: models.ToolChoiceAny = {
2 type: "any",
3};

models.ToolChoiceNone

1const value: models.ToolChoiceNone = {
2 type: "none",
3};

models.ToolChoiceTool

1const value: models.ToolChoiceTool = {
2 name: "<value>",
3 type: "tool",
4};