Class: OpenAI::Models::Beta::BetaResponseFunctionWebSearch::Action::FindInPage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseFunctionWebSearch::Action::FindInPage
- Defined in:
- lib/openai/models/beta/beta_response_function_web_search.rb,
sig/openai/models/beta/beta_response_function_web_search.rbs
Instance Attribute Summary collapse
-
#pattern ⇒ String
The pattern or text to search for within the page.
-
#type ⇒ :find_in_page
The action type.
-
#url ⇒ String
The URL of the page searched for the pattern.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ FindInPage
constructor
A new instance of FindInPage.
- #to_hash ⇒ { pattern: String, ?type: :find_in_page, url: 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 ⇒ FindInPage
Returns a new instance of FindInPage.
177 178 179 180 181 |
# File 'sig/openai/models/beta/beta_response_function_web_search.rbs', line 177
def initialize: (
pattern: String,
url: String,
?type: :find_in_page
) -> void
|
Instance Attribute Details
#pattern ⇒ String
The pattern or text to search for within the page.
175 |
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 175 required :pattern, String |
#type ⇒ :find_in_page
The action type.
181 |
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 181 required :type, const: :find_in_page |
#url ⇒ String
The URL of the page searched for the pattern.
187 |
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 187 required :url, String |
Instance Method Details
#to_hash ⇒ { pattern: String, ?type: :find_in_page, url: String }
183 184 185 186 187 |
# File 'sig/openai/models/beta/beta_response_function_web_search.rbs', line 183
def to_hash: -> {
pattern: String,
?type: :find_in_page,
url: String
}
|