Class: Agentic::Configuration
- Inherits:
-
Object
- Object
- Agentic::Configuration
- Defined in:
- lib/agentic.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#agent_store_path ⇒ Object
Returns the value of attribute agent_store_path.
-
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_token ⇒ Object
Returns the value of attribute access_token.
38 39 40 |
# File 'lib/agentic.rb', line 38 def access_token @access_token end |
#agent_store_path ⇒ Object
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_url ⇒ Object
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 |