Module: Stagehand::Models::ModelConfig

Extended by:
Internal::Type::Union
Defined in:
lib/stagehand/models/model_config.rb,
sig/stagehand/models/model_config.rbs

Defined Under Namespace

Classes: GenericModelConfigObject, VertexModelConfigObject

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, 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, meta_info, new_coerce_state, type_info

Class Method Details

.variants ⇒ Array(Stagehand::Models::ModelConfig::VertexModelConfigObject, Stagehand::Models::ModelConfig::GenericModelConfigObject)



# File 'lib/stagehand/models/model_config.rb', line 330

Instance Method Details

#initialize(location:, project:, base_url: nil, headers: nil) ⇒ Object

Vertex AI provider-specific settings

Parameters:

  • location (String) —

    Google Cloud location for Vertex AI models

  • project (String) —

    Google Cloud project ID for Vertex AI models

  • base_url (String) (defaults to: nil) —

    Base URL for the Vertex AI provider

  • headers (Hash{Symbol=>String}) (defaults to: nil) —

    Custom headers sent with every request to the Vertex AI provider



# File 'lib/stagehand/models/model_config.rb', line 257

#self?.variants ⇒ ::Array[Stagehand::Models::model_config]

Returns:

  • (::Array[Stagehand::Models::model_config])


329
# File 'sig/stagehand/models/model_config.rbs', line 329

def self?.variants: -> ::Array[Stagehand::Models::model_config]