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

index.ts

61 lines1.9 KB

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