AgentZero::AgentNetwork
Inherits Reference < Object
Manager for networks of distributed cognitive agents
Constructors
new(name : String, config : NetworkConfig | Nil = nil)
Instance methods
add_agent(agent : AgentNode) : Bool
Add an agent to the network
agents
agents=(agents : Hash(String, AgentNode))
collaborative_reasoning(query : String, agent_selection : AgentSelection = AgentSelection::All, timeout_seconds : Int32 = 60) : CollaborativeReasoningResult
Execute collaborative reasoning across the network
create_agent(name : String, capabilities : Array(String) = [] of String) : AgentNode | Nil
Create and add a new agent to the network
discover_agents(timeout_seconds : Int32 = 10) : Array(AgentNode)
Discover agents in the network
distribute_knowledge(knowledge : KnowledgeItem, propagation_strategy : PropagationStrategy = PropagationStrategy::Flood) : Int32
Distribute knowledge across the network
execute_distributed_task(task : DistributedTask) : TaskExecutionResult
Coordinate distributed task execution
name
name=(name : String)
network_config
network_config=(network_config : NetworkConfig)
network_status
Get comprehensive network status
optimize_topology
Optimize network topology for better performance
remove_agent(agent_id : String) : Bool
Remove an agent from the network
start
Start the agent network
stop
Stop the agent network