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

interface ResponseCodeInterpreterCallCodeDoneEvent {
    code: string;
    item_id: string;
    output_index: number;
    sequence_number: number;
    type: "response.code_interpreter_call_code.done";
}

Properties

code: string

The final code snippet output by the code interpreter.

item_id: string

The unique identifier of the code interpreter tool call item.

output_index: number

The index of the output item in the response for which the code is finalized.

sequence_number: number

The sequence number of this event, used to order streaming events.

type: "response.code_interpreter_call_code.done"

The type of the event. Always response.code_interpreter_call_code.done.