Skip to content

Interface: XAICodeExecutionTool

@providerprotocol/ai


@providerprotocol/ai / xai / XAICodeExecutionTool

Defined in: src/providers/xai/types.ts:340

Code execution tool for Python in a sandbox.

Enables Grok to write and execute Python code in a secure environment. Pricing: $5 per 1,000 successful tool invocations.

const tool: XAICodeExecutionTool = {
type: 'code_interpreter',
};

type: "code_interpreter"

Defined in: src/providers/xai/types.ts:342

Tool type identifier