Module: OpenAI::Models::Responses::ResponseFunctionWebSearch::Action

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/responses/response_function_web_search.rb

Overview

An object describing the specific action taken in this web search call. Includes details on how the model used the web (search, open_page, find).

See Also:

Defined Under Namespace

Classes: Find, OpenPage, Search

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

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

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info

Instance Method Details

#initialize(url: , type: :open_page) ⇒ void

Some parameter documentations has been truncated, see OpenPage for more details.

Action type "open_page" - Opens a specific URL from search results.

Parameters:

  • url (String) (defaults to: )

    The URL opened by the model.

  • type (Symbol, :open_page) (defaults to: :open_page)

    The action type.



# File 'lib/openai/models/responses/response_function_web_search.rb', line 79