Class: Ask::Rails::Configuration
- Inherits:
-
Object
- Object
- Ask::Rails::Configuration
- Defined in:
- lib/ask/rails/configuration.rb
Instance Attribute Summary collapse
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#max_turns ⇒ Object
Returns the value of attribute max_turns.
-
#persistence_adapter ⇒ Object
Returns the value of attribute persistence_adapter.
-
#system_prompt ⇒ Object
Returns the value of attribute system_prompt.
-
#tool_concurrency ⇒ Object
Returns the value of attribute tool_concurrency.
-
#tools ⇒ Object
Returns the value of attribute tools.
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 15 16 |
# File 'lib/ask/rails/configuration.rb', line 9 def initialize @default_model = "gpt-4o" @max_turns = 25 @system_prompt = nil @tool_concurrency = 5 @persistence_adapter = nil @tools = [] end |
Instance Attribute Details
#default_model ⇒ Object
Returns the value of attribute default_model.
6 7 8 |
# File 'lib/ask/rails/configuration.rb', line 6 def default_model @default_model end |
#max_turns ⇒ Object
Returns the value of attribute max_turns.
6 7 8 |
# File 'lib/ask/rails/configuration.rb', line 6 def max_turns @max_turns end |
#persistence_adapter ⇒ Object
Returns the value of attribute persistence_adapter.
6 7 8 |
# File 'lib/ask/rails/configuration.rb', line 6 def persistence_adapter @persistence_adapter end |
#system_prompt ⇒ Object
Returns the value of attribute system_prompt.
6 7 8 |
# File 'lib/ask/rails/configuration.rb', line 6 def system_prompt @system_prompt end |
#tool_concurrency ⇒ Object
Returns the value of attribute tool_concurrency.
6 7 8 |
# File 'lib/ask/rails/configuration.rb', line 6 def tool_concurrency @tool_concurrency end |
#tools ⇒ Object
Returns the value of attribute tools.
6 7 8 |
# File 'lib/ask/rails/configuration.rb', line 6 def tools @tools end |