Class: ActiveAgent::Configuration
- Inherits:
-
Object
- Object
- ActiveAgent::Configuration
- Defined in:
- lib/active_agent/configuration.rb
Instance Attribute Summary collapse
-
#anthropic_api_key ⇒ Object
Returns the value of attribute anthropic_api_key.
-
#default_provider ⇒ Object
Returns the value of attribute default_provider.
-
#gemini_api_key ⇒ Object
Returns the value of attribute gemini_api_key.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#memory_store ⇒ Object
Returns the value of attribute memory_store.
-
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 |
# File 'lib/active_agent/configuration.rb', line 10 def initialize @default_provider = :gemini @memory_store = :in_memory @logger = defined?(Rails) ? Rails.logger : Logger.new($stdout) end |
Instance Attribute Details
#anthropic_api_key ⇒ Object
Returns the value of attribute anthropic_api_key.
7 8 9 |
# File 'lib/active_agent/configuration.rb', line 7 def anthropic_api_key @anthropic_api_key end |
#default_provider ⇒ Object
Returns the value of attribute default_provider.
7 8 9 |
# File 'lib/active_agent/configuration.rb', line 7 def default_provider @default_provider end |
#gemini_api_key ⇒ Object
Returns the value of attribute gemini_api_key.
7 8 9 |
# File 'lib/active_agent/configuration.rb', line 7 def gemini_api_key @gemini_api_key end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/active_agent/configuration.rb', line 7 def logger @logger end |
#memory_store ⇒ Object
Returns the value of attribute memory_store.
7 8 9 |
# File 'lib/active_agent/configuration.rb', line 7 def memory_store @memory_store end |
#openai_api_key ⇒ Object
Returns the value of attribute openai_api_key.
7 8 9 |
# File 'lib/active_agent/configuration.rb', line 7 def openai_api_key @openai_api_key end |