Class: Cadenya::Models::AIProviderKeySpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::AIProviderKeySpec
- Defined in:
- lib/cadenya/models/ai_provider_key_spec.rb
Defined Under Namespace
Modules: Provider
Instance Attribute Summary collapse
-
#api_key ⇒ String?
The provider credential.
-
#openrouter ⇒ Object?
OpenRouterConfig holds OpenRouter-specific settings.
-
#provider ⇒ Symbol, ...
The AI provider this key authenticates against.
Instance Method Summary collapse
-
#initialize(api_key: nil, openrouter: nil, provider: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see AIProviderKeySpec for more details.
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(api_key: nil, openrouter: nil, provider: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::AIProviderKeySpec for more details.
|
|
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 27
|
Instance Attribute Details
#api_key ⇒ String?
The provider credential. Accepted on create/update; never populated in responses (the server returns an empty value to avoid leaking it).
11 |
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 11 optional :api_key, String, api_name: :apiKey |
#openrouter ⇒ Object?
OpenRouterConfig holds OpenRouter-specific settings. Empty for now; it exists as the oneof seam so provider-specific options (region, base URL, etc.) can be added later without restructuring the spec.
19 |
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 19 optional :openrouter, Cadenya::Internal::Type::Unknown |
#provider ⇒ Symbol, ...
The AI provider this key authenticates against.
25 |
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 25 optional :provider, enum: -> { Cadenya::AIProviderKeySpec::Provider } |