Class: OpenAI::Models::Responses::ResponseFunctionWebSearch::Action::Search
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseFunctionWebSearch::Action::Search
- Defined in:
- lib/openai/models/responses/response_function_web_search.rb,
sig/openai/models/responses/response_function_web_search.rbs
Defined Under Namespace
Classes: Source
Instance Attribute Summary collapse
-
#queries ⇒ ::Array[String]?
The search queries.
-
#query ⇒ String?
The search query.
-
#sources ⇒ ::Array[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source]?
The sources used in the search.
-
#type ⇒ :search
The action type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ Search
constructor
A new instance of Search.
- #to_hash ⇒ { ?type: :search, ?queries: ::Array[String], ?query: String, ?sources: ::Array[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source] }
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 ⇒ Search
Returns a new instance of Search.
97 98 99 100 101 102 |
# File 'sig/openai/models/responses/response_function_web_search.rbs', line 97
def initialize: (
?queries: ::Array[String],
?query: String,
?sources: ::Array[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source],
?type: :search
) -> void
|
Instance Attribute Details
#queries ⇒ ::Array[String]?
The search queries.
79 |
# File 'lib/openai/models/responses/response_function_web_search.rb', line 79 optional :queries, OpenAI::Internal::Type::ArrayOf[String] |
#query ⇒ String?
The search query.
87 |
# File 'lib/openai/models/responses/response_function_web_search.rb', line 87 optional :query, String |
#sources ⇒ ::Array[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source]?
The sources used in the search.
93 94 95 96 97 98 |
# File 'lib/openai/models/responses/response_function_web_search.rb', line 93 optional( :sources, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source] } ) |
#type ⇒ :search
The action type.
73 |
# File 'lib/openai/models/responses/response_function_web_search.rb', line 73 required :type, const: :search |
Instance Method Details
#to_hash ⇒ { ?type: :search, ?queries: ::Array[String], ?query: String, ?sources: ::Array[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source] }
104 105 106 107 108 109 |
# File 'sig/openai/models/responses/response_function_web_search.rbs', line 104
def to_hash: -> {
?type: :search,
?queries: ::Array[String],
?query: String,
?sources: ::Array[OpenAI::Responses::ResponseFunctionWebSearch::Action::Search::Source]
}
|