Multi-Agent System for Prediction Market Resolution Using LangChain and LangGraph
chaos_labs · Finance · 2024 · source Agentic: yes · promotional bias: high · source-backed · extracted with prompt 0.5.6 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Prediction market resolution
Chaos Labs needed an oracle architecture for resolving prediction-market queries objectively while reducing single-model bias and grounding decisions in external data.
Constraints:
- Prediction markets require transparent outcome resolution.
- Relying on one model risks bias and brittle truth-seeking.
- The alpha system had limited published real-world performance data.
- The source is a guest post on the LangChain blog and has promotional bias.
Architecture
Edge AI Oracle uses a sequential multi-agent council built on LangChain and LangGraph. Research, scraping, bias analysis, report writing, summarization, and classification agents use multiple model providers to produce a final resolution with configurable consensus thresholds.
Diagram confidence: reconstructed (reconstructed from prose).
flowchart LR research-analyst["Research Analyst"] web-scraper["Web Scraper"] document-bias-analyst["Document Bias Analyst"] report-writer["Report Writer"] summarizer["Summarizer"] classifier["Classifier"] research-analyst --> web-scraper web-scraper --> research-analyst web-scraper --> document-bias-analyst document-bias-analyst --> web-scraper document-bias-analyst --> report-writer report-writer --> document-bias-analyst report-writer --> summarizer summarizer --> report-writer summarizer --> classifier classifier --> summarizer
Components
| Component | Role | Interacts with |
|---|---|---|
Research Analyst |
Parses the query and identifies required data points and sources. | Web Scraper |
Web Scraper |
Retrieves external source and database evidence. | Research Analyst, Document Bias Analyst |
Document Bias Analyst |
Filters gathered data and checks for bias. | Web Scraper, Report Writer |
Report Writer |
Synthesizes filtered research into an initial answer. | Document Bias Analyst, Summarizer |
Summarizer |
Condenses the full report for final classification. | Report Writer, Classifier |
Classifier |
Categorizes and validates the summarized output against preset criteria. | Summarizer |
Data flow
A research analyst parses the market query, a web scraper gathers verified data, a bias analyst filters the evidence, a report writer synthesizes findings, a summarizer condenses them, and a classifier validates the final answer.
Why this architecture
A multi-provider council is used to counter single-model bias, while LangGraph gives the oracle a stateful workflow and LangChain supplies model, retrieval, prompt, and parser abstractions.
Models used: OpenAI models · Anthropic models · Meta models
Scale
- The initial deployment required unanimous agreement above 95% confidence.“the initial deployment requiring unanimous agreement with over 95% confidence from each agent”summary, stated
- The workflow has six distinct agent roles.“six distinct agent roles:”summary, stated
Alternatives considered (roads not taken)
Single-LLM oracle resolution
Rejected because: A single model can introduce bias and lacks the diverse perspectives Chaos Labs wanted for truth-seeking.
Traditional human or rule-based market oracle
Rejected because: The product aims to provide objective, transparent, efficient resolution for varied prediction-market questions.
Patterns
multi-agent-orchestration (architecture)
A council of specialized agents executes a sequential resolution workflow.
model-routing (architecture)
The system uses models from OpenAI, Anthropic, and Meta to diversify perspectives.
human-in-the-loop-gate (governance)
Prediction-market resolution remains configured around consensus and confidence thresholds before decisions are accepted.
Tradeoffs
Use a council of diverse models
Chose Multiple providers and consensus over A single model deciding market outcomes.
Rationale: Diverse model perspectives are intended to reduce single-model bias.
Use a sequential graph
Chose Directed handoffs through LangGraph over Unstructured agent collaboration.
Rationale: Prediction-market resolution needs an auditable chain from research through validation.
Gotchas (what bit them)
The source does not explain bias-filtering methodology in depth.
Root cause: The case describes a bias analyst role but omits detailed criteria for detecting or filtering bias.
Resolution: Treat bias-filtering claims as architectural intent rather than validated effectiveness evidence.
The alpha release lacks quantitative accuracy results.
Root cause: The case is early-stage and reports architecture more than measured production performance.
Resolution: Use the case for orchestration and consensus patterns, not as proof of accuracy improvement.
Evaluation
The system uses confidence thresholds and final classification but the case does not publish measured accuracy improvements.
Metrics: agent confidence · unanimous agreement
Outcomes
- Chaos Labs released an alpha Edge AI Oracle built with LangChain and LangGraph.
- The architecture can require unanimous high-confidence agreement.
- No public quantitative accuracy results are reported.
The system is in alpha and reports consensus thresholds rather than production volume.