Class: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseToolSearchOutputItem
- Defined in:
- lib/openai/models/beta/beta_response_tool_search_output_item.rb,
sig/openai/models/beta/beta_response_tool_search_output_item.rbs
Defined Under Namespace
Modules: Execution, Status Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::BetaResponseToolSearchOutputItem::Agent?
The agent that produced this item.
-
#call_id ⇒ String?
The unique ID of the tool search call generated by the model.
-
#created_by ⇒ String?
The identifier of the actor that created the item.
-
#execution ⇒ OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::execution
Whether tool search was executed by the server or by the client.
-
#id ⇒ String
The unique ID of the tool search output item.
-
#status ⇒ OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::status
The status of the tool search output item that was recorded.
-
#tools ⇒ ::Array[OpenAI::Models::Beta::beta_tool]
The loaded tool definitions returned by tool search.
-
#type ⇒ :tool_search_output
The type of the item.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, call_id:, execution:, status:, tools:, agent: nil, created_by: nil, type: :tool_search_output) ⇒ BetaResponseToolSearchOutputItem
constructor
A new instance of BetaResponseToolSearchOutputItem.
- #to_hash ⇒ { id: String, call_id: String?, execution: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::execution, status: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::status, tools: ::Array[OpenAI::Models::Beta::beta_tool], ?type: :tool_search_output, ?agent: OpenAI::Beta::BetaResponseToolSearchOutputItem::Agent, ?created_by: String }
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:, call_id:, execution:, status:, tools:, agent: nil, created_by: nil, type: :tool_search_output) ⇒ BetaResponseToolSearchOutputItem
Returns a new instance of BetaResponseToolSearchOutputItem.
|
|
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 55
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::BetaResponseToolSearchOutputItem::Agent?
The agent that produced this item.
47 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 47 optional :agent, -> { OpenAI::Beta::BetaResponseToolSearchOutputItem::Agent } |
#call_id ⇒ String?
The unique ID of the tool search call generated by the model.
17 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 17 required :call_id, String, nil?: true |
#created_by ⇒ String?
The identifier of the actor that created the item.
53 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 53 optional :created_by, String |
#execution ⇒ OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::execution
Whether tool search was executed by the server or by the client.
23 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 23 required :execution, enum: -> { OpenAI::Beta::BetaResponseToolSearchOutputItem::Execution } |
#id ⇒ String
The unique ID of the tool search output item.
11 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 11 required :id, String |
#status ⇒ OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::status
The status of the tool search output item that was recorded.
29 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 29 required :status, enum: -> { OpenAI::Beta::BetaResponseToolSearchOutputItem::Status } |
#tools ⇒ ::Array[OpenAI::Models::Beta::beta_tool]
The loaded tool definitions returned by tool search.
35 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 35 required :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaTool] } |
#type ⇒ :tool_search_output
The type of the item. Always tool_search_output.
41 |
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 41 required :type, const: :tool_search_output |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_response_tool_search_output_item.rb', line 89
|
Instance Method Details
#to_hash ⇒ { id: String, call_id: String?, execution: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::execution, status: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::status, tools: ::Array[OpenAI::Models::Beta::beta_tool], ?type: :tool_search_output, ?agent: OpenAI::Beta::BetaResponseToolSearchOutputItem::Agent, ?created_by: String }
78 79 80 81 82 83 84 85 86 87 |
# File 'sig/openai/models/beta/beta_response_tool_search_output_item.rbs', line 78
def to_hash: -> {
id: String,
call_id: String?,
execution: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::execution,
status: OpenAI::Models::Beta::BetaResponseToolSearchOutputItem::status,
tools: ::Array[OpenAI::Models::Beta::beta_tool],
?type: :tool_search_output,
?agent: OpenAI::Beta::BetaResponseToolSearchOutputItem::Agent,
?created_by: String
}
|