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

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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.

Parameters:

  • pattern —

    The pattern or text to search for within the page.

  • url —

    The URL of the page searched for the pattern.

  • type —

    The action type.

  • pattern: (String)
  • url: (String)
  • type: (:find_in_page)


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.

Returns:

  • (String)


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

required :pattern, String

#type ⇒ :find_in_page

The action type.

Returns:

  • (:find_in_page)


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.

Returns:

  • (String)


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 }

Returns:

  • ({ 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
}