A tool call to run code.

interface ResponseCodeInterpreterToolCall {
    code: string;
    id: string;
    results: (OpenAIClient.Responses.ResponseCodeInterpreterToolCall.Logs | OpenAIClient.Responses.ResponseCodeInterpreterToolCall.Files)[];
    status: "in_progress" | "completed" | "interpreting";
    type: "code_interpreter_call";
}

Properties

code: string

The code to run.

id: string

The unique ID of the code interpreter tool call.

The results of the code interpreter tool call.

status: "in_progress" | "completed" | "interpreting"

The status of the code interpreter tool call.

type: "code_interpreter_call"

The type of the code interpreter tool call. Always code_interpreter_call.