Class: Nanobot::Config::AgentsConfig

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

Overview

Top-level agents section wrapping agent defaults

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(defaults: {}) ⇒ AgentsConfig

Returns a new instance of AgentsConfig.

Parameters:

  • defaults (Hash) (defaults to: {}) —

    agent default settings (see AgentDefaults)



82
83
84
# File 'lib/nanobot/config/schema.rb', line 82

def initialize(defaults: {})
  super(defaults: AgentDefaults.new(**defaults))
end

Instance Attribute Details

#defaults ⇒ Object

Returns the value of attribute defaults

Returns:

  • (Object) —

    the current value of defaults



80
81
82
# File 'lib/nanobot/config/schema.rb', line 80

def defaults
  @defaults
end