class

AgentZero::ConsensusManager

Inherits Reference < Object

Consensus management for distributed decisions

Constructors

new(protocol : String, participants : Array(AgentNode))
Source

Instance methods

get_consensus_result(consensus_id : String) : ConsensusStatus | Nil
Source
participants
Source
participants=(participants : Array(AgentNode))
Source
propose_consensus(proposal : JSON::Any, timeout_seconds : Int32 = 30) : String
Source
protocol
Source
protocol=(protocol : String)
Source
select_knowledge_targets(knowledge : KnowledgeItem) : Array(AgentNode)
Source
start
Source
stop
Source
vote(consensus_id : String, agent_id : String, decision : VoteDecision, justification : String = "") : Bool
Source

Nested types