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: 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, 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:

  • id (String) (defaults to: )

    The unique ID of the function call tool output.

  • call_id (String) (defaults to: )

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

  • output (String) (defaults to: )

    A JSON string of the output of the function tool call.

  • status (Symbol, OpenAI::Models::Responses::ResponseFunctionToolCallOutputItem::Status) (defaults to: nil)

    The status of the item. One of ‘in_progress`, `completed`, or

  • type (Symbol, :function_call_output) (defaults to: :function_call_output)

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



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

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

A JSON string of the output of the function tool call.

Returns:

  • (String)


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

required :output, String

#statusSymbol, ...

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



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

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)


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

required :type, const: :function_call_output