Class: OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_function_tool_call_output_item.rb

Defined Under Namespace

Modules: Output, Status

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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(id:, call_id:, output:, status: nil, type: :function_call_output) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem for more details.

Parameters:



# File 'lib/openai/models/responses/response_function_tool_call_output_item.rb', line 39

Instance Attribute Details

#call_idString

The unique ID of the function tool call generated by the model.

Returns:

  • (String)


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

required :call_id, String

#idString

The unique ID of the function call tool output.

Returns:

  • (String)


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

required :id, String

#outputString, Array<OpenAI::Models::Responses::ResponseInputText, OpenAI::Models::Responses::ResponseInputImage, OpenAI::Models::Responses::ResponseInputFile>

The output from the function call generated by your code. Can be a string or an list of output content.



24
# File 'lib/openai/models/responses/response_function_tool_call_output_item.rb', line 24

required :output, union: -> { OpenAI::Responses::ResponseFunctionToolCallOutputItem::Output }

#statusSymbol, ...

The status of the item. One of ‘in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.



37
# File 'lib/openai/models/responses/response_function_tool_call_output_item.rb', line 37

optional :status, enum: -> { OpenAI::Responses::ResponseFunctionToolCallOutputItem::Status }

#typeSymbol, :function_call_output

The type of the function tool call output. Always ‘function_call_output`.

Returns:

  • (Symbol, :function_call_output)


30
# File 'lib/openai/models/responses/response_function_tool_call_output_item.rb', line 30

required :type, const: :function_call_output