Class: Nanobot::Config::AgentDefaults

Inherits:
Struct
  • Object
show all
Defined in:
lib/nanobot/config/schema.rb

Overview

Default settings applied to all agents unless overridden

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • model (String) (defaults to: 'claude-haiku-4-5') —

    default LLM model identifier

  • workspace (String) (defaults to: '~/.nanobot/workspace') —

    path to agent workspace directory

  • max_tokens (Integer) (defaults to: 4096) —

    maximum tokens per LLM response

  • temperature (Float) (defaults to: 0.7) —

    sampling temperature (0.0-1.0)

  • max_tool_iterations (Integer) (defaults to: 20) —

    maximum tool call rounds per turn

  • log_level (String) (defaults to: 'info') —

    logging verbosity (debug, info, warn, error)



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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of model



52
53
54
# File 'lib/nanobot/config/schema.rb', line 52

def model
  @model
end

#temperature ⇒ Object

Returns the value of attribute temperature

Returns:

  • (Object) —

    the current value of temperature



52
53
54
# File 'lib/nanobot/config/schema.rb', line 52

def temperature
  @temperature
end

#workspace ⇒ Object

Returns the value of attribute workspace

Returns:

  • (Object) —

    the current value of workspace



52
53
54
# File 'lib/nanobot/config/schema.rb', line 52

def workspace
  @workspace
end