Class: OpenAI::Models::Beta::BetaResponsesServerEvent::BetaResponseCustomToolCallInputWsDone

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

#agent, #input, #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 ⇒ BetaResponseCustomToolCallInputWsDone

Returns a new instance of BetaResponseCustomToolCallInputWsDone.

Parameters:

  • input —

    The complete input data for the custom tool call.

  • item_id —

    Unique identifier for the API item associated with this event.

  • output_index —

    The index of the output this event applies to.

  • sequence_number —

    The sequence number of this event.

  • 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 event type identifier.

  • input: (String)
  • item_id: (String)
  • output_index: (Integer)
  • sequence_number: (Integer)
  • agent: (OpenAI::Beta::BetaResponseCustomToolCallInputDoneEvent::Agent, nil)
  • stream_id: (String)
  • type: (:"response.custom_tool_call_input.done")


3220
3221
3222
3223
3224
3225
3226
3227
3228
# File 'sig/openai/models/beta/beta_responses_server_event.rbs', line 3220

def initialize: (
  input: String,
  item_id: String,
  output_index: Integer,
  sequence_number: Integer,
  ?agent: OpenAI::Beta::BetaResponseCustomToolCallInputDoneEvent::Agent?,
  ?stream_id: String,
  ?type: :"response.custom_tool_call_input.done"
) -> 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)


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

optional :stream_id, String

Instance Method Details

#to_hash ⇒ { input: String, item_id: String, output_index: Integer, sequence_number: Integer, ?type: :"response.custom_tool_call_input.done", ?agent: OpenAI::Beta::BetaResponseCustomToolCallInputDoneEvent::Agent?, ?stream_id: String }

Returns:

  • ({ input: String, item_id: String, output_index: Integer, sequence_number: Integer, ?type: :"response.custom_tool_call_input.done", ?agent: OpenAI::Beta::BetaResponseCustomToolCallInputDoneEvent::Agent?, ?stream_id: String })


3230
3231
3232
3233
3234
3235
3236
3237
3238
# File 'sig/openai/models/beta/beta_responses_server_event.rbs', line 3230

def to_hash: -> {
  input: String,
  item_id: String,
  output_index: Integer,
  sequence_number: Integer,
  ?type: :"response.custom_tool_call_input.done",
  ?agent: OpenAI::Beta::BetaResponseCustomToolCallInputDoneEvent::Agent?,
  ?stream_id: String
}