Class: OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools
- Defined in:
- lib/openai/models/beta/beta_response_output_item.rb,
sig/openai/models/beta/beta_response_output_item.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent?
The agent that produced this item.
-
#id ⇒ String
The unique ID of the additional tools item.
-
#role ⇒ OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role
The role that provided the additional tools.
-
#tools ⇒ ::Array[OpenAI::Models::Beta::beta_tool]
The additional tool definitions made available at this item.
-
#type ⇒ :additional_tools
The type of the item.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, role:, tools:, agent: nil, type: :additional_tools) ⇒ AdditionalTools
constructor
A new instance of AdditionalTools.
- #to_hash ⇒ { id: String, role: OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role, tools: ::Array[OpenAI::Models::Beta::beta_tool], ?type: :additional_tools, ?agent: OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent }
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(id:, role:, tools:, agent: nil, type: :additional_tools) ⇒ AdditionalTools
Returns a new instance of AdditionalTools.
|
|
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 803
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent?
The agent that produced this item.
801 |
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 801 optional :agent, -> { OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent } |
#id ⇒ String
The unique ID of the additional tools item.
777 |
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 777 required :id, String |
#role ⇒ OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role
The role that provided the additional tools.
783 |
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 783 required :role, enum: -> { OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Role } |
#tools ⇒ ::Array[OpenAI::Models::Beta::beta_tool]
The additional tool definitions made available at this item.
789 |
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 789 required :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaTool] } |
#type ⇒ :additional_tools
The type of the item. Always additional_tools.
795 |
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 795 required :type, const: :additional_tools |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_response_output_item.rb', line 834
|
Instance Method Details
#to_hash ⇒ { id: String, role: OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role, tools: ::Array[OpenAI::Models::Beta::beta_tool], ?type: :additional_tools, ?agent: OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent }
748 749 750 751 752 753 754 |
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 748
def to_hash: -> {
id: String,
role: OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role,
tools: ::Array[OpenAI::Models::Beta::beta_tool],
?type: :additional_tools,
?agent: OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent
}
|