class

OpenAI::ResponseCodeInterpreterCallCodeDoneEvent

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(type_value : ResponseCodeInterpreterCallCodeDoneEventType = ResponseCodeInterpreterCallCodeDoneEventType::ResponseCodeInterpreterCallCodeDone, output_index : Int64 = 0, item_id : String = "", code : String = "", sequence_number : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code

The final code snippet output by the code interpreter.

Source
code=(code : String)

The final code snippet output by the code interpreter.

Source
item_id

The unique identifier of the code interpreter tool call item.

Source
item_id=(item_id : String)

The unique identifier of the code interpreter tool call item.

Source
output_index

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

Source
output_index=(output_index : Int64)

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

Source
sequence_number

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

Source
sequence_number=(sequence_number : Int64)

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

Source
type_value

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

Source
type_value=(type_value : ResponseCodeInterpreterCallCodeDoneEventType)

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

Source