class

AgentZero::AgentNode

Inherits Reference < Object

Represents a distributed cognitive agent node

Constructors

new(name : String, host : String = "localhost", port : Int32 = 0)
Source

Instance methods

broadcast_message(message : Message) : Int32

Broadcast a message to all connected peers

Source
capabilities
Source
capabilities=(capabilities : Array(String))
Source
cognitive_kernel
Source
cognitive_kernel=(cognitive_kernel : AtomSpace::CognitiveKernel)
Source
connect_to_peer(host : String, port : Int32) : Bool

Connect to another agent

Source
created_at
Source
host
Source
host=(host : String)
Source
id=(id : String)
Source
name
Source
name=(name : String)
Source
network_status

Get network status and peer information

Source
port
Source
port=(port : Int32)
Source
request_collaborative_reasoning(query : String, timeout_seconds : Int32 = 30) : Array(CollaborativeResult)

Request collaborative reasoning from the network

Source
send_message_to_peer(peer_id : String, message : Message) : Bool

Send a message to a specific peer

Source
share_knowledge(knowledge_item : KnowledgeItem) : Int32

Share knowledge with the network

Source
start

Start the agent and begin listening for connections

Source
status
Source
status=(status : AgentStatus)
Source
stop

Stop the agent

Source
trust_level
Source
trust_level=(trust_level : Float64)
Source

Nested types