Class: SuperInstance::Equipment::SwarmCoordinator::OrchestratorConfig

Inherits:
Data
  • Object
show all
Defined in:
lib/equipment/swarm_coordinator/agent_orchestrator.rb

Overview

Configuration for the Agent Orchestrator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#default_timeoutObject (readonly)

Returns the value of attribute default_timeout

Returns:

  • (Object)

    the current value of default_timeout



9
10
11
# File 'lib/equipment/swarm_coordinator/agent_orchestrator.rb', line 9

def default_timeout
  @default_timeout
end

#enable_hierarchyObject (readonly)

Returns the value of attribute enable_hierarchy

Returns:

  • (Object)

    the current value of enable_hierarchy



9
10
11
# File 'lib/equipment/swarm_coordinator/agent_orchestrator.rb', line 9

def enable_hierarchy
  @enable_hierarchy
end

#load_balancingObject (readonly)

Returns the value of attribute load_balancing

Returns:

  • (Object)

    the current value of load_balancing



9
10
11
# File 'lib/equipment/swarm_coordinator/agent_orchestrator.rb', line 9

def load_balancing
  @load_balancing
end

#max_agentsObject (readonly)

Returns the value of attribute max_agents

Returns:

  • (Object)

    the current value of max_agents



9
10
11
# File 'lib/equipment/swarm_coordinator/agent_orchestrator.rb', line 9

def max_agents
  @max_agents
end

#max_hierarchy_depthObject (readonly)

Returns the value of attribute max_hierarchy_depth

Returns:

  • (Object)

    the current value of max_hierarchy_depth



9
10
11
# File 'lib/equipment/swarm_coordinator/agent_orchestrator.rb', line 9

def max_hierarchy_depth
  @max_hierarchy_depth
end

Class Method Details

.new(**kwargs) ⇒ Object



16
17
18
19
20
21
22
23
24
25
# File 'lib/equipment/swarm_coordinator/agent_orchestrator.rb', line 16

def self.new(**kwargs)
  defaults = {
    max_agents: 100,
    enable_hierarchy: true,
    max_hierarchy_depth: 5,
    default_timeout: 30_000,
    load_balancing: true
  }
  super(**defaults.merge(kwargs))
end