Class: OpenAI::Models::Beta::BetaResponsesServerEvent::BetaResponseShellCallOutputContentWsDelta

Inherits:
OpenAI::Models::Beta::BetaResponseShellCallOutputContentDeltaEvent 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::BetaResponseShellCallOutputContentDeltaEvent

#agent, #command_index, #delta, #item_id, #output_index, #sequence_number, #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 ⇒ BetaResponseShellCallOutputContentWsDelta

Returns a new instance of BetaResponseShellCallOutputContentWsDelta.

Parameters:

  • command_index —

    The index of the shell command that produced output.

  • delta —

    The stdout/stderr delta that was emitted.

  • item_id —

    The ID of the output item that was updated.

  • output_index —

    The index of the output item that was updated.

  • sequence_number —

    The sequence number of the event that was emitted.

  • 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.shell_call_output_content.delta.

  • command_index: (Integer)
  • delta: (OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta)
  • item_id: (String)
  • output_index: (Integer)
  • sequence_number: (Integer)
  • agent: (OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent)
  • stream_id: (String)
  • type: (:"response.shell_call_output_content.delta")


1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
# File 'sig/openai/models/beta/beta_responses_server_event.rbs', line 1257

def initialize: (
  command_index: Integer,
  delta: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta,
  item_id: String,
  output_index: Integer,
  sequence_number: Integer,
  ?agent: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent,
  ?stream_id: String,
  ?type: :"response.shell_call_output_content.delta"
) -> 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)


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

optional :stream_id, String

Instance Method Details

#to_hash ⇒ { command_index: Integer, delta: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta, item_id: String, output_index: Integer, sequence_number: Integer, ?type: :"response.shell_call_output_content.delta", ?agent: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent, ?stream_id: String }

Returns:

  • ({ command_index: Integer, delta: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta, item_id: String, output_index: Integer, sequence_number: Integer, ?type: :"response.shell_call_output_content.delta", ?agent: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent, ?stream_id: String })


1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
# File 'sig/openai/models/beta/beta_responses_server_event.rbs', line 1268

def to_hash: -> {
  command_index: Integer,
  delta: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta,
  item_id: String,
  output_index: Integer,
  sequence_number: Integer,
  ?type: :"response.shell_call_output_content.delta",
  ?agent: OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent,
  ?stream_id: String
}