Class: Agentic::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



40
41
42
43
44
# File 'lib/agentic.rb', line 40

def initialize
  @access_token = ENV["OPENAI_ACCESS_TOKEN"] || ENV["AGENTIC_API_TOKEN"] || "ollama"
  @agent_store_path = ENV["AGENTIC_AGENT_STORE_PATH"] || File.join(Dir.home, ".agentic", "agents")
  @api_base_url = ENV["AGENTIC_API_BASE_URL"] || ENV["OPENAI_BASE_URL"]
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



38
39
40
# File 'lib/agentic.rb', line 38

def access_token
  @access_token
end

#agent_store_pathObject

Returns the value of attribute agent_store_path.



38
39
40
# File 'lib/agentic.rb', line 38

def agent_store_path
  @agent_store_path
end

#api_base_urlObject

Returns the value of attribute api_base_url.



38
39
40
# File 'lib/agentic.rb', line 38

def api_base_url
  @api_base_url
end