Open History to see the last commit
1import { brandGeminiProviderTool } from './gemini-provider-tool'
2import type { ProviderTool, Tool } from '@tanstack/ai'
3
4export interface CodeExecutionToolConfig {}
5
6/** @deprecated Renamed to `CodeExecutionToolConfig`. Will be removed in a future release. */
7export type CodeExecutionTool = CodeExecutionToolConfig
8
9export type GeminiCodeExecutionTool = ProviderTool<'gemini', 'code_execution'>
10
11export function convertCodeExecutionToolToAdapterFormat(_tool: Tool) {
12 return {
13 codeExecution: {},
14 }
15}
16
17export function codeExecutionTool(): GeminiCodeExecutionTool {
18 return brandGeminiProviderTool<GeminiCodeExecutionTool>(
19 {
20 name: 'code_execution',
21 description: '',
22 metadata: {},
23 },
24 'code_execution',
25 )
26}