A tool that runs Python code to help generate a response to a prompt.

interface CodeInterpreter {
    container: string | CodeInterpreterToolAuto;
    type: "code_interpreter";
}

Properties

Properties

container: string | CodeInterpreterToolAuto

The code interpreter container. Can be a container ID or an object that specifies uploaded file IDs to make available to your code.

type: "code_interpreter"

The type of the code interpreter tool. Always code_interpreter.