Class: OpenAI::Models::Beta::BetaResponseFunctionWebSearch::Action::Search

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

Defined Under Namespace

Classes: Source

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_with_error, 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

Parameters:

  • queries

    The search queries.

  • query

    The search query.

  • sources

    The sources used in the search.

  • type

    The action type.



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

def initialize: (

Instance Attribute Details

#queries::Array[String]?

The search queries.

Returns:

  • (::Array[String], nil)


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

optional :queries, OpenAI::Internal::Type::ArrayOf[String]

#queryString?

The search query.

Returns:

  • (String, nil)


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

optional :query, String

#sources::Array[OpenAI::Beta::BetaResponseFunctionWebSearch::Action::Search::Source]?

The sources used in the search.

Returns:

  • (::Array[OpenAI::Beta::BetaResponseFunctionWebSearch::Action::Search::Source], nil)


102
103
104
105
106
107
# File 'lib/openai/models/beta/beta_response_function_web_search.rb', line 102

optional(
  :sources,
  -> {
    OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::BetaResponseFunctionWebSearch::Action::Search::Source]
  }
)

#type:search

The action type.

Returns:

  • (:search)


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

required :type, const: :search

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {