Class: OpenAI::Models::Beta::BetaResponseFunctionCallArgumentsDoneEvent

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

Defined Under Namespace

Classes: Agent

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_with_error, 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(arguments:, item_id:, output_index:, sequence_number:, agent: nil, type: :"response.function_call_arguments.done") ⇒ Object

Emitted when function-call arguments are finalized.



# File 'lib/openai/models/beta/beta_response_function_call_arguments_done_event.rb', line 42

Instance Attribute Details

#agentOpenAI::Models::Beta::BetaResponseFunctionCallArgumentsDoneEvent::Agent?

The agent that owns this multi-agent streaming event.



40
# File 'lib/openai/models/beta/beta_response_function_call_arguments_done_event.rb', line 40

optional :agent, -> { OpenAI::Beta::BetaResponseFunctionCallArgumentsDoneEvent::Agent }, nil?: true

#argumentsString

The function-call arguments.



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

required :arguments, String

#item_idString

The ID of the item.



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

required :item_id, String

#output_indexInteger

The index of the output item.



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

required :output_index, Integer

#sequence_numberInteger

The sequence number of this event.



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

required :sequence_number, Integer

#typeSymbol, :"response.function_call_arguments.done"



34
# File 'lib/openai/models/beta/beta_response_function_call_arguments_done_event.rb', line 34

required :type, const: :"response.function_call_arguments.done"

Instance Method Details

#to_hash{



38
# File 'sig/openai/models/beta/beta_response_function_call_arguments_done_event.rbs', line 38

def to_hash: -> {