Class: RubyConversations::Configuration
- Inherits:
-
Object
- Object
- RubyConversations::Configuration
- Defined in:
- lib/ruby_conversations/configuration.rb
Overview
Configuration options for RubyConversations
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#bedrock_guardrail_identifier ⇒ Object
Returns the value of attribute bedrock_guardrail_identifier.
-
#bedrock_guardrail_version ⇒ Object
Returns the value of attribute bedrock_guardrail_version.
-
#default_llm_model ⇒ Object
Returns the value of attribute default_llm_model.
-
#default_llm_provider ⇒ Object
Returns the value of attribute default_llm_provider.
-
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #validate! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/ruby_conversations/configuration.rb', line 9 def initialize @default_llm_model = 'claude-sonnet-4' @default_llm_provider = 'bedrock' end |
Instance Attribute Details
#api_url ⇒ Object
Returns the value of attribute api_url.
6 7 8 |
# File 'lib/ruby_conversations/configuration.rb', line 6 def api_url @api_url end |
#bedrock_guardrail_identifier ⇒ Object
Returns the value of attribute bedrock_guardrail_identifier.
6 7 8 |
# File 'lib/ruby_conversations/configuration.rb', line 6 def bedrock_guardrail_identifier @bedrock_guardrail_identifier end |
#bedrock_guardrail_version ⇒ Object
Returns the value of attribute bedrock_guardrail_version.
6 7 8 |
# File 'lib/ruby_conversations/configuration.rb', line 6 def bedrock_guardrail_version @bedrock_guardrail_version end |
#default_llm_model ⇒ Object
Returns the value of attribute default_llm_model.
6 7 8 |
# File 'lib/ruby_conversations/configuration.rb', line 6 def default_llm_model @default_llm_model end |
#default_llm_provider ⇒ Object
Returns the value of attribute default_llm_provider.
6 7 8 |
# File 'lib/ruby_conversations/configuration.rb', line 6 def default_llm_provider @default_llm_provider end |
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
6 7 8 |
# File 'lib/ruby_conversations/configuration.rb', line 6 def jwt_secret @jwt_secret end |
Instance Method Details
#validate! ⇒ Object
14 15 16 17 |
# File 'lib/ruby_conversations/configuration.rb', line 14 def validate! raise ConfigurationError, 'api_url is required' unless api_url raise ConfigurationError, 'jwt_secret is required' unless jwt_secret end |