Class: OpenAI::Models::Beta::BetaResponseFunctionWebSearch::Action::OpenPage
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaResponseFunctionWebSearch::Action::OpenPage
- 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
-
#type ⇒ Symbol, :open_page
The action type.
-
#url ⇒ String?
The URL opened by the model.
Instance Method Summary collapse
-
#initialize ⇒ OpenPage
constructor
A new instance of OpenPage.
- #to_hash ⇒ { type: :open_page, url: String? }
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
#initialize ⇒ OpenPage
Returns a new instance of OpenPage.
109 |
# File 'sig/openai/models/beta/beta_response_function_web_search.rbs', line 109
def initialize: (?url: String?, ?type: :open_page) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :open_page
The action type.
148 |
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 148 required :type, const: :open_page |
#url ⇒ String?
The URL opened by the model.
154 |
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 154 optional :url, String, nil?: true |
Instance Method Details
#to_hash ⇒ { type: :open_page, url: String? }
111 |
# File 'sig/openai/models/beta/beta_response_function_web_search.rbs', line 111
def to_hash: -> { type: :open_page, url: String? }
|