AgentZero::ConsensusManager
Inherits Reference < Object
Consensus management for distributed decisions
Constructors
new(protocol : String, participants : Array(AgentNode))
SourceInstance methods
get_consensus_result(consensus_id : String) : ConsensusStatus | Nil
Sourceparticipants
Sourceparticipants=(participants : Array(AgentNode))
Sourcepropose_consensus(proposal : JSON::Any, timeout_seconds : Int32 = 30) : String
Sourceprotocol
Sourceprotocol=(protocol : String)
Sourceselect_knowledge_targets(knowledge : KnowledgeItem) : Array(AgentNode)
Sourcestart
Sourcestop
Sourcevote(consensus_id : String, agent_id : String, decision : VoteDecision, justification : String = "") : Bool
Source