{"uid":"cap_h3SHwGBGel0rh1W4Xzl0M","slug":"agent-consensus-weighted-vote-37b0e862","name":"Agent Consensus – Weighted Vote","description":"Consensus utilities for multi-agent systems: majority vote, weighted vote, plurality counts, agreement score, and Borda-style rank merge. Pay-per-request USDC via x402. No API keys, no accounts.","url":"https://agent-consensus.annushka1190.workers.dev/v1/vote/weighted","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"share":0.67,"winner":"yes"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eZ9Nc-_HVgaFhmiLQQryT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Aggregates weighted votes from multiple agents and returns the winning option along with its weighted share of the total vote.","exampleAgentPrompt":"I have five agents who all voted on whether to approve this transaction — three voted 'yes' with weights 0.8, 0.7, and 0.9, and two voted 'no' with weights 0.5 and 0.6. Run a weighted vote and tell me the winner and its share.","exampleUseCases":[{"title":"Resolving conflicting agent classifications","prompt":"I have four classifier agents that voted on whether this email is spam or not — two said 'spam' with confidence 0.9 and 0.85, and two said 'not spam' with confidence 0.6 and 0.4. Can you run a weighted vote to figure out the final answer and how dominant the winner was?"},{"title":"Multi-agent trading signal aggregation","prompt":"My trading agents submitted buy/sell/hold signals with varying reliability scores: agent A says 'buy' with weight 0.95, agent B says 'hold' with weight 0.7, agent C says 'buy' with weight 0.8, and agent D says 'sell' with weight 0.3. Run a weighted vote and tell me which signal wins and its share."},{"title":"Ensemble model decision arbitration","prompt":"I'm running an ensemble where three models voted 'yes' with weights 1.0, 0.6, and 0.4, and two models voted 'no' with weights 0.9 and 0.5. Use weighted voting to compute the consensus answer and the winning share."}],"resultDescription":"Returns a JSON object with the 'winner' field (the winning option/label) and 'share' field (a float between 0 and 1 representing the winning option's proportion of total weighted votes, e.g. 0.67 means 67% of weighted vote mass).","failureModes":["Missing required 'input' field returns a validation error","Malformed vote entries or missing weights cause a 400-level error","Tie votes may return an arbitrary winner or a tie indicator depending on implementation","Empty vote list may return null winner","Payment failure or insufficient USDC balance blocks the request via x402 flow"],"whenToPreferThis":"Choose this endpoint when agents have unequal trust or confidence levels and a simple majority vote would be misleading. Prefer weighted voting over plain majority vote when some agents are known to be more accurate, more recent, or more relevant to the decision. Ideal for ensemble AI systems, multi-model arbitration, and any scenario where vote sources carry different reliability scores.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:31:47.050Z","isFirstParty":false}