Class: OpenAI::Models::Beta::BetaResponseFunctionWebSearch::Action::FindInPage

Inherits:
Internal::Type::BaseModel show all
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

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



124
# File 'sig/openai/models/beta/beta_response_function_web_search.rbs', line 124

def initialize: (

Instance Attribute Details

#patternString

The pattern or text to search for within the page.

Parameters:

  • value (String)

Returns:

  • (String)


173
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 173

required :pattern, String

#typeSymbol, :find_in_page

The action type.

Parameters:

  • value (:find_in_page)

Returns:

  • (Symbol, :find_in_page)


179
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 179

required :type, const: :find_in_page

#urlString

The URL of the page searched for the pattern.

Parameters:

  • value (String)

Returns:

  • (String)


185
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 185

required :url, String

Instance Method Details

#to_hash{

Returns:

  • ({)


130
# File 'sig/openai/models/beta/beta_response_function_web_search.rbs', line 130

def to_hash: -> {