class

AgentZero::ConsensusManager

Inherits Reference < Object

Consensus management for distributed decisions

Constructors

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

Instance methods

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

Nested types