Class: Ask::Agent::Configuration
- Inherits:
-
Object
- Object
- Ask::Agent::Configuration
- Defined in:
- lib/ask/agent/configuration.rb
Instance Attribute Summary collapse
-
#compactor_enabled ⇒ Object
Returns the value of attribute compactor_enabled.
-
#compactor_threshold ⇒ Object
Returns the value of attribute compactor_threshold.
-
#default_max_turns ⇒ Object
Returns the value of attribute default_max_turns.
-
#default_model ⇒ Object
Returns the value of attribute default_model.
-
#max_tool_retries ⇒ Object
Returns the value of attribute max_tool_retries.
-
#middleware ⇒ Middleware::Pipeline
readonly
The middleware pipeline for provider calls.
-
#parallel_tool_execution ⇒ Object
Returns the value of attribute parallel_tool_execution.
-
#stream_transforms ⇒ StreamTransforms::Pipeline
readonly
The stream transforms pipeline.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#scheduler ⇒ SchedulerConfig
DSL for defining recurring agent tasks.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ask/agent/configuration.rb', line 15 def initialize @default_model = "gpt-4o" @default_max_turns = 25 @compactor_enabled = true @compactor_threshold = 0.8 @parallel_tool_execution = true @max_tool_retries = 3 @middleware = Middleware::Pipeline.new @stream_transforms = StreamTransforms::Pipeline.new @scheduler_config = SchedulerConfig.new(self) end |
Instance Attribute Details
#compactor_enabled ⇒ Object
Returns the value of attribute compactor_enabled.
6 7 8 |
# File 'lib/ask/agent/configuration.rb', line 6 def compactor_enabled @compactor_enabled end |
#compactor_threshold ⇒ Object
Returns the value of attribute compactor_threshold.
6 7 8 |
# File 'lib/ask/agent/configuration.rb', line 6 def compactor_threshold @compactor_threshold end |
#default_max_turns ⇒ Object
Returns the value of attribute default_max_turns.
6 7 8 |
# File 'lib/ask/agent/configuration.rb', line 6 def default_max_turns @default_max_turns end |
#default_model ⇒ Object
Returns the value of attribute default_model.
6 7 8 |
# File 'lib/ask/agent/configuration.rb', line 6 def default_model @default_model end |
#max_tool_retries ⇒ Object
Returns the value of attribute max_tool_retries.
6 7 8 |
# File 'lib/ask/agent/configuration.rb', line 6 def max_tool_retries @max_tool_retries end |
#middleware ⇒ Middleware::Pipeline (readonly)
Returns the middleware pipeline for provider calls.
10 11 12 |
# File 'lib/ask/agent/configuration.rb', line 10 def middleware @middleware end |
#parallel_tool_execution ⇒ Object
Returns the value of attribute parallel_tool_execution.
6 7 8 |
# File 'lib/ask/agent/configuration.rb', line 6 def parallel_tool_execution @parallel_tool_execution end |
#stream_transforms ⇒ StreamTransforms::Pipeline (readonly)
Returns the stream transforms pipeline.
13 14 15 |
# File 'lib/ask/agent/configuration.rb', line 13 def stream_transforms @stream_transforms end |
Instance Method Details
#scheduler ⇒ SchedulerConfig
Returns DSL for defining recurring agent tasks.
29 30 31 |
# File 'lib/ask/agent/configuration.rb', line 29 def scheduler @scheduler_config end |