Class: OpenAI::Models::Beta::BetaResponsesServerEvent::BetaResponseReasoningSummaryPartWsAdded

Inherits:
OpenAI::Models::Beta::BetaResponseReasoningSummaryPartAddedEvent show all
Defined in:
lib/openai/models/beta/beta_responses_server_event.rb,
sig/openai/models/beta/beta_responses_server_event.rbs

Instance Attribute Summary collapse

Attributes inherited from OpenAI::Models::Beta::BetaResponseReasoningSummaryPartAddedEvent

#agent, #item_id, #output_index, #part, #sequence_number, #summary_index, #type

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ BetaResponseReasoningSummaryPartWsAdded

Returns a new instance of BetaResponseReasoningSummaryPartWsAdded.

Parameters:

  • item_id —

    The ID of the item this summary part is associated with.

  • output_index —

    The index of the output item this summary part is associated with.

  • part —

    The summary part that was added.

  • sequence_number —

    The sequence number of this event.

  • summary_index —

    The index of the summary part within the reasoning summary.

  • agent —

    The agent that owns this multi-agent streaming event.

  • stream_id —

    The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

  • type —

    The type of the event. Always response.reasoning_summary_part.added.

  • item_id: (String)
  • output_index: (Integer)
  • part: (OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Part)
  • sequence_number: (Integer)
  • summary_index: (Integer)
  • agent: (OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Agent, nil)
  • stream_id: (String)
  • type: (:"response.reasoning_summary_part.added")


1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
# File 'sig/openai/models/beta/beta_responses_server_event.rbs', line 1622

def initialize: (
  item_id: String,
  output_index: Integer,
  part: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Part,
  sequence_number: Integer,
  summary_index: Integer,
  ?agent: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Agent?,
  ?stream_id: String,
  ?type: :"response.reasoning_summary_part.added"
) -> void

Instance Attribute Details

#stream_id ⇒ String?

The WebSocket lane that emitted this event. This field is present when the originating response.create event supplied a stream_id.

Returns:

  • (String, nil)


1320
# File 'lib/openai/models/beta/beta_responses_server_event.rb', line 1320

optional :stream_id, String

Instance Method Details

#to_hash ⇒ { item_id: String, output_index: Integer, part: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Part, sequence_number: Integer, summary_index: Integer, ?type: :"response.reasoning_summary_part.added", ?agent: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Agent?, ?stream_id: String }

Returns:

  • ({ item_id: String, output_index: Integer, part: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Part, sequence_number: Integer, summary_index: Integer, ?type: :"response.reasoning_summary_part.added", ?agent: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Agent?, ?stream_id: String })


1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
# File 'sig/openai/models/beta/beta_responses_server_event.rbs', line 1633

def to_hash: -> {
  item_id: String,
  output_index: Integer,
  part: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Part,
  sequence_number: Integer,
  summary_index: Integer,
  ?type: :"response.reasoning_summary_part.added",
  ?agent: OpenAI::Beta::BetaResponseReasoningSummaryPartAddedEvent::Agent?,
  ?stream_id: String
}