Emitted when code snippet output is finalized by the code interpreter.

interface ResponseCodeInterpreterCallCodeDoneEvent {
    code: string;
    output_index: number;
    type: "response.code_interpreter_call.code.done";
}

Properties

code: string

The final code snippet output by the code interpreter.

output_index: number

The index of the output item that the code interpreter call is in progress.

type: "response.code_interpreter_call.code.done"

The type of the event. Always response.code_interpreter_call.code.done.