Class: OpenAI::Models::Responses::ToolSearchTool
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ToolSearchTool
- Defined in:
- lib/openai/models/responses/tool_search_tool.rb,
sig/openai/models/responses/tool_search_tool.rbs
Defined Under Namespace
Modules: Execution
Instance Attribute Summary collapse
-
#description ⇒ String?
Description shown to the model for a client-executed tool search tool.
-
#execution ⇒ OpenAI::Models::Responses::ToolSearchTool::execution?
Whether tool search is executed by the server or by the client.
-
#parameters ⇒ top?
Parameter schema for a client-executed tool search tool.
-
#type ⇒ :tool_search
The type of the tool.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(description: nil, execution: nil, parameters: nil, type: :tool_search) ⇒ ToolSearchTool
constructor
A new instance of ToolSearchTool.
- #to_hash ⇒ { ?type: :tool_search, ?description: String?, ?execution: OpenAI::Models::Responses::ToolSearchTool::execution, ?parameters: top? }
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(description: nil, execution: nil, parameters: nil, type: :tool_search) ⇒ ToolSearchTool
Returns a new instance of ToolSearchTool.
|
|
# File 'lib/openai/models/responses/tool_search_tool.rb', line 31
|
Instance Attribute Details
#description ⇒ String?
Description shown to the model for a client-executed tool search tool.
17 |
# File 'lib/openai/models/responses/tool_search_tool.rb', line 17 optional :description, String, nil?: true |
#execution ⇒ OpenAI::Models::Responses::ToolSearchTool::execution?
Whether tool search is executed by the server or by the client.
23 |
# File 'lib/openai/models/responses/tool_search_tool.rb', line 23 optional :execution, enum: -> { OpenAI::Responses::ToolSearchTool::Execution } |
#parameters ⇒ top?
Parameter schema for a client-executed tool search tool.
29 |
# File 'lib/openai/models/responses/tool_search_tool.rb', line 29 optional :parameters, OpenAI::Internal::Type::Unknown, nil?: true |
#type ⇒ :tool_search
The type of the tool. Always tool_search.
11 |
# File 'lib/openai/models/responses/tool_search_tool.rb', line 11 required :type, const: :tool_search |
Instance Method Details
#to_hash ⇒ { ?type: :tool_search, ?description: String?, ?execution: OpenAI::Models::Responses::ToolSearchTool::execution, ?parameters: top? }
45 46 47 48 49 50 |
# File 'sig/openai/models/responses/tool_search_tool.rbs', line 45
def to_hash: -> {
?type: :tool_search,
?description: String?,
?execution: OpenAI::Models::Responses::ToolSearchTool::execution,
?parameters: top?
}
|