Class: ActiveAgent::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_agent/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_providerObject

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_keyObject

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

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/active_agent/configuration.rb', line 7

def logger
  @logger
end

#memory_storeObject

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_keyObject

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