Class: Nanobot::Config::AgentDefaults
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::AgentDefaults
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Default settings applied to all agents unless overridden
Instance Attribute Summary collapse
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#max_tool_iterations ⇒ Object
Returns the value of attribute max_tool_iterations.
-
#model ⇒ Object
Returns the value of attribute model.
-
#temperature ⇒ Object
Returns the value of attribute temperature.
-
#workspace ⇒ Object
Returns the value of attribute workspace.
Instance Method Summary collapse
-
#initialize(model: 'claude-haiku-4-5', workspace: '~/.nanobot/workspace', max_tokens: 4096, temperature: 0.7, max_tool_iterations: 20, log_level: 'info') ⇒ AgentDefaults
constructor
A new instance of AgentDefaults.
Constructor Details
#initialize(model: 'claude-haiku-4-5', workspace: '~/.nanobot/workspace', max_tokens: 4096, temperature: 0.7, max_tool_iterations: 20, log_level: 'info') ⇒ AgentDefaults
Returns a new instance of AgentDefaults.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/nanobot/config/schema.rb', line 67 def initialize( model: 'claude-haiku-4-5', workspace: '~/.nanobot/workspace', max_tokens: 4096, temperature: 0.7, max_tool_iterations: 20, log_level: 'info' ) super end |
Instance Attribute Details
#log_level ⇒ Object
Returns the value of attribute log_level
52 53 54 |
# File 'lib/nanobot/config/schema.rb', line 52 def log_level @log_level end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens
52 53 54 |
# File 'lib/nanobot/config/schema.rb', line 52 def max_tokens @max_tokens end |
#max_tool_iterations ⇒ Object
Returns the value of attribute max_tool_iterations
52 53 54 |
# File 'lib/nanobot/config/schema.rb', line 52 def max_tool_iterations @max_tool_iterations end |
#model ⇒ Object
Returns the value of attribute model
52 53 54 |
# File 'lib/nanobot/config/schema.rb', line 52 def model @model end |
#temperature ⇒ Object
Returns the value of attribute temperature
52 53 54 |
# File 'lib/nanobot/config/schema.rb', line 52 def temperature @temperature end |
#workspace ⇒ Object
Returns the value of attribute workspace
52 53 54 |
# File 'lib/nanobot/config/schema.rb', line 52 def workspace @workspace end |