Skip to content

Interface: GoogleCodeExecutionTool

@providerprotocol/ai


@providerprotocol/ai / google / 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.

const tool: GoogleCodeExecutionTool = {
codeExecution: {},
};

codeExecution: Record<string, never>

Defined in: src/providers/google/types.ts:676

Empty object to enable code execution