Class: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall
- Defined in:
- lib/openai/models/beta/beta_response_input_item.rb,
sig/openai/models/beta/beta_response_input_item.rbs
Defined Under Namespace
Modules: Execution, Status Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?
The agent that produced this item.
-
#arguments ⇒ top
The arguments supplied to the tool search call.
-
#call_id ⇒ String?
The unique ID of the tool search call generated by the model.
-
#execution ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution?
Whether tool search was executed by the server or by the client.
-
#id ⇒ String?
The unique ID of this tool search call.
-
#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status?
The status of the tool search call.
-
#type ⇒ :tool_search_call
The item type.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_name:) ⇒ ToolSearchCall
constructor
A new instance of ToolSearchCall.
- #to_hash ⇒ { arguments: top, ?type: :tool_search_call, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?, ?call_id: String?, ?execution: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution, ?status: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status? }
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(agent_name:) ⇒ ToolSearchCall
Returns a new instance of ToolSearchCall.
|
|
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1145
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?
The agent that produced this item.
1119 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1119 optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent }, nil?: true |
#arguments ⇒ top
The arguments supplied to the tool search call.
1101 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1101 required :arguments, OpenAI::Internal::Type::Unknown |
#call_id ⇒ String?
The unique ID of the tool search call generated by the model.
1125 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1125 optional :call_id, String, nil?: true |
#execution ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution?
Whether tool search was executed by the server or by the client.
1131 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1131 optional :execution, enum: -> { OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Execution } |
#id ⇒ String?
The unique ID of this tool search call.
1113 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1113 optional :id, String, nil?: true |
#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status?
The status of the tool search call.
1137 1138 1139 1140 1141 1142 1143 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1137 optional( :status, enum: -> { OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Status }, nil?: true ) |
#type ⇒ :tool_search_call
The item type. Always tool_search_call.
1107 |
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1107 required :type, const: :tool_search_call |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 1191
|
Instance Method Details
#to_hash ⇒ { arguments: top, ?type: :tool_search_call, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?, ?call_id: String?, ?execution: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution, ?status: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status? }
1017 1018 1019 1020 1021 1022 1023 1024 1025 |
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 1017
def to_hash: -> {
arguments: top,
?type: :tool_search_call,
?id: String?,
?agent: OpenAI::Beta::BetaResponseInputItem::ToolSearchCall::Agent?,
?call_id: String?,
?execution: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::execution,
?status: OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall::status?
}
|