class

AgentZero::AgentNetwork

Inherits Reference < Object

Manager for networks of distributed cognitive agents

Constructors

new(name : String, config : NetworkConfig | Nil = nil)
Source

Instance methods

add_agent(agent : AgentNode) : Bool

Add an agent to the network

Source
agents
Source
agents=(agents : Hash(String, AgentNode))
Source
collaborative_reasoning(query : String, agent_selection : AgentSelection = AgentSelection::All, timeout_seconds : Int32 = 60) : CollaborativeReasoningResult

Execute collaborative reasoning across the network

Source
create_agent(name : String, capabilities : Array(String) = [] of String) : AgentNode | Nil

Create and add a new agent to the network

Source
discover_agents(timeout_seconds : Int32 = 10) : Array(AgentNode)

Discover agents in the network

Source
distribute_knowledge(knowledge : KnowledgeItem, propagation_strategy : PropagationStrategy = PropagationStrategy::Flood) : Int32

Distribute knowledge across the network

Source
execute_distributed_task(task : DistributedTask) : TaskExecutionResult

Coordinate distributed task execution

Source
name
Source
name=(name : String)
Source
network_config
Source
network_config=(network_config : NetworkConfig)
Source
network_status

Get comprehensive network status

Source
optimize_topology

Optimize network topology for better performance

Source
remove_agent(agent_id : String) : Bool

Remove an agent from the network

Source
start

Start the agent network

Source
stop

Stop the agent network

Source

Nested types