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

index.ts

69 lines2.0 KB

1import type { CodeExecutionTool } from './code-execution-tool'
2import type { ComputerUseTool } from './computer-use-tool'
3import type { FileSearchTool } from './file-search-tool'
4import type { FunctionDeclarationTool } from './function-declaration-tool'
5import type { GoogleMapsTool } from './google-maps-tool'
6import type { GoogleSearchRetrievalTool } from './google-search-retriveal-tool'
7import type { GoogleSearchTool } from './google-search-tool'
8import type { UrlContextTool } from './url-context-tool'
9​
10export {
11 codeExecutionTool,
12 type GeminiCodeExecutionTool,
13 type CodeExecutionToolConfig,
14 type CodeExecutionTool,
15} from './code-execution-tool'
16export {
17 computerUseTool,
18 type GeminiComputerUseTool,
19 type ComputerUseToolConfig,
20 type ComputerUseTool,
21} from './computer-use-tool'
22export {
23 fileSearchTool,
24 type GeminiFileSearchTool,
25 type FileSearchToolConfig,
26 type FileSearchTool,
27} from './file-search-tool'
28export {
29 functionDeclarationTools,
30 type FunctionDeclarationTool,
31} from './function-declaration-tool'
32export {
33 googleMapsTool,
34 type GeminiGoogleMapsTool,
35 type GoogleMapsToolConfig,
36 type GoogleMapsTool,
37} from './google-maps-tool'
38export {
39 googleSearchRetrievalTool,
40 type GeminiGoogleSearchRetrievalTool,
41 type GoogleSearchRetrievalToolConfig,
42 type GoogleSearchRetrievalTool,
43} from './google-search-retriveal-tool'
44export {
45 googleSearchTool,
46 type GeminiGoogleSearchTool,
47 type GoogleSearchToolConfig,
48 type GoogleSearchTool,
49} from './google-search-tool'
50export {
51 urlContextTool,
52 type GeminiUrlContextTool,
53 type UrlContextToolConfig,
54 type UrlContextTool,
55} from './url-context-tool'
56​
57// Keep the existing discriminated union defined inline (no barrel exports).
58// Built from the deprecated config-type aliases — matches the SDK-adapter shape.
59export type GoogleGeminiTool =
60 | CodeExecutionTool
61 | ComputerUseTool
62 | FileSearchTool
63 | FunctionDeclarationTool
64 | GoogleMapsTool
65 | GoogleSearchRetrievalTool
66 | GoogleSearchTool
67 | UrlContextTool
68​
69export { convertToolsToProviderFormat } from './tool-converter'