Emitted when a partial code snippet is streamed by the code interpreter.

interface ResponseCodeInterpreterCallCodeDeltaEvent {
    delta: string;
    item_id: string;
    output_index: number;
    sequence_number: number;
    type: "response.code_interpreter_call_code.delta";
}

Properties

delta: string

The partial code snippet being streamed 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 being streamed.

sequence_number: number

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

type: "response.code_interpreter_call_code.delta"

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