Class: OpenAI::Models::Responses::ResponseFunctionCallArgumentsDoneEvent

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

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:, type: :"response.function_call_arguments.done") ⇒ Object

Parameters:

  • arguments —

    The function-call arguments.

  • item_id —

    The ID of the item.

  • output_index —

    The index of the output item.

  • sequence_number —

    The sequence number of this event.



# File 'lib/openai/models/responses/response_function_call_arguments_done_event.rb', line 36

Instance Attribute Details

#arguments ⇒ String

The function-call arguments.

Returns:

  • (String)


11
# File 'lib/openai/models/responses/response_function_call_arguments_done_event.rb', line 11

required :arguments, String

#item_id ⇒ String

The ID of the item.

Returns:

  • (String)


17
# File 'lib/openai/models/responses/response_function_call_arguments_done_event.rb', line 17

required :item_id, String

#output_index ⇒ Integer

The index of the output item.

Returns:

  • (Integer)


23
# File 'lib/openai/models/responses/response_function_call_arguments_done_event.rb', line 23

required :output_index, Integer

#sequence_number ⇒ Integer

The sequence number of this event.

Returns:

  • (Integer)


29
# File 'lib/openai/models/responses/response_function_call_arguments_done_event.rb', line 29

required :sequence_number, Integer

#type ⇒ Symbol, :"response.function_call_arguments.done"

Parameters:

  • value (:"response.function_call_arguments.done")

Returns:

  • (Symbol, :"response.function_call_arguments.done")


34
# File 'lib/openai/models/responses/response_function_call_arguments_done_event.rb', line 34

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

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


44
# File 'sig/openai/models/responses/response_function_call_arguments_done_event.rbs', line 44

def to_hash: -> {