Class: OpenAI::Models::Responses::ResponseCodeInterpreterCallCodeDeltaEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(delta:, item_id:, output_index:, sequence_number:, type: :"response.code_interpreter_call_code.delta") ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseCodeInterpreterCallCodeDeltaEvent for more details.

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

Parameters:

  • 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 (Integer)

    The index of the output item in the response for which the code is being streame

  • sequence_number (Integer)

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

  • type (Symbol, :"response.code_interpreter_call_code.delta") (defaults to: :"response.code_interpreter_call_code.delta")

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



# File 'lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb', line 38

Instance Attribute Details

#deltaString

The partial code snippet being streamed by the code interpreter.

Returns:

  • (String)


11
# File 'lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb', line 11

required :delta, String

#item_idString

The unique identifier of the code interpreter tool call item.

Returns:

  • (String)


17
# File 'lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb', line 17

required :item_id, String

#output_indexInteger

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

Returns:

  • (Integer)


24
# File 'lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb', line 24

required :output_index, Integer

#sequence_numberInteger

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

Returns:

  • (Integer)


30
# File 'lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb', line 30

required :sequence_number, Integer

#typeSymbol, :"response.code_interpreter_call_code.delta"

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

Returns:

  • (Symbol, :"response.code_interpreter_call_code.delta")


36
# File 'lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb', line 36

required :type, const: :"response.code_interpreter_call_code.delta"