Class: OpenAI::Models::Beta::BetaResponseShellCallOutputContentDeltaEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb,
sig/openai/models/beta/beta_response_shell_call_output_content_delta_event.rbs

Defined Under Namespace

Classes: Agent, Delta

Instance Attribute Summary collapse

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(stderr: nil, stdout: nil) ⇒ BetaResponseShellCallOutputContentDeltaEvent

Returns a new instance of BetaResponseShellCallOutputContentDeltaEvent.

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.

  • 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)
  • type: (:"response.shell_call_output_content.delta")


# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 49

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent?

The agent that owns this multi-agent streaming event.

Returns:

  • (OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent, nil)


47
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 47

optional :agent, -> { OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Agent }

#command_index ⇒ Integer

The index of the shell command that produced output.

Returns:

  • (Integer)


11
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 11

required :command_index, Integer

#delta ⇒ OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta

The stdout/stderr delta that was emitted.

Returns:

  • (OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta)


17
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 17

required :delta, -> { OpenAI::Beta::BetaResponseShellCallOutputContentDeltaEvent::Delta }

#item_id ⇒ String

The ID of the output item that was updated.

Returns:

  • (String)


23
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 23

required :item_id, String

#output_index ⇒ Integer

The index of the output item that was updated.

Returns:

  • (Integer)


29
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 29

required :output_index, Integer

#sequence_number ⇒ Integer

The sequence number of the event that was emitted.

Returns:

  • (Integer)


35
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 35

required :sequence_number, Integer

#type ⇒ :"response.shell_call_output_content.delta"

The type of the event, always response.shell_call_output_content.delta.

Returns:

  • (:"response.shell_call_output_content.delta")


41
# File 'lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb', line 41

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

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 }

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 })


68
69
70
71
72
73
74
75
76
# File 'sig/openai/models/beta/beta_response_shell_call_output_content_delta_event.rbs', line 68

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
}