Interface: GoogleCodeExecutionTool
@providerprotocol/ai / google / GoogleCodeExecutionTool
Interface: GoogleCodeExecutionTool
Section titled “Interface: GoogleCodeExecutionTool”Defined in: src/providers/google/types.ts:674
Code execution tool for running Python in a sandbox.
Enables Gemini to write and execute Python code in a secure environment. Supports data analysis, calculations, and visualization.
No additional cost - standard token pricing applies.
Example
Section titled “Example”const tool: GoogleCodeExecutionTool = { codeExecution: {},};Properties
Section titled “Properties”codeExecution
Section titled “codeExecution”codeExecution:
Record<string,never>
Defined in: src/providers/google/types.ts:676
Empty object to enable code execution