Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

tool-choice.ts

31 lines506 Bytes

1interface MCPToolChoice {
2 type: 'mcp'
3 server_label: string
4}
5​
6interface FunctionToolChoice {
7 type: 'function'
8 name: string
9}
10​
11interface CustomToolChoice {
12 type: 'custom'
13 name: string
15​
16interface HostedToolChoice {
17 type:
18 | 'file_search'
19 | 'web_search_preview'
20 | 'computer_use_preview'
21 | 'code_interpreter'
22 | 'image_generation'
23 | 'shell'
24 | 'apply_patch'
26​
27export type ToolChoice =
28 | MCPToolChoice
29 | FunctionToolChoice
30 | CustomToolChoice
31 | HostedToolChoice