Class: RailsAiAgents::Configuration
- Inherits:
-
Object
- Object
- RailsAiAgents::Configuration
- Defined in:
- lib/rails_ai_agents.rb
Overview
Configuration class for gem-wide settings
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#llm_provider ⇒ Object
Returns the value of attribute llm_provider.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/rails_ai_agents.rb', line 9 def initialize @llm_provider = :openai @api_key = nil @default_model = "gpt-3.5-turbo" @api_base_url = "https://api.openai.com/v1" end |
Instance Attribute Details
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
7 8 9 |
# File 'lib/rails_ai_agents.rb', line 7 def api_base_url @api_base_url end |
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/rails_ai_agents.rb', line 7 def api_key @api_key end |
#default_model ⇒ Object
Returns the value of attribute default_model.
7 8 9 |
# File 'lib/rails_ai_agents.rb', line 7 def default_model @default_model end |
#llm_provider ⇒ Object
Returns the value of attribute llm_provider.
7 8 9 |
# File 'lib/rails_ai_agents.rb', line 7 def llm_provider @llm_provider end |