lucataco/consensus

Ask three LLMs the same question and find the consensus

Public
29 runs

Run lucataco/consensus with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
question
string
The question or decision you want the AI models to analyze and reach consensus on
context
string
Optional additional context or background information to help the models better understand your question
decision_criteria
string
Optional specific criteria or factors the models should consider when analyzing your question
temperature
number
0.3

Max: 1

Controls randomness in responses (0.0 = deterministic, 1.0 = creative)
require_unanimous
boolean
False
If true, requires all three models to agree. If false, accepts 2/3 majority consensus

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "question",
    "gemini_response",
    "claude_response",
    "gpt5_response",
    "consensus_analysis",
    "final_recommendation",
    "confidence_level",
    "reasoning_notes"
  ],
  "properties": {
    "question": {
      "type": "string",
      "title": "Question"
    },
    "gpt5_response": {
      "type": "string",
      "title": "Gpt5 Response"
    },
    "claude_response": {
      "type": "string",
      "title": "Claude Response"
    },
    "gemini_response": {
      "type": "string",
      "title": "Gemini Response"
    },
    "reasoning_notes": {
      "type": "string",
      "title": "Reasoning Notes"
    },
    "confidence_level": {
      "type": "string",
      "title": "Confidence Level"
    },
    "consensus_analysis": {
      "type": "string",
      "title": "Consensus Analysis"
    },
    "final_recommendation": {
      "type": "string",
      "title": "Final Recommendation"
    }
  }
}
Example API response
View prediction
{'claude_response': '# Top 3 Greatest Inventions in History\n'
                    '\n'
                    '## 1. **The Printing Press (1440s)**\n'
                    "**Justification:** Johannes Gutenberg's movable-type "
                    'printing press democratized knowledge like nothing before '
                    'it. Previously, books were hand-copied by scribes, making '
                    'them scarce and expensive. The printing press:\n'
                    '- Enabled mass literacy and education\n'
                    '- Accelerated the Scientific Revolution and Reformation\n'
                    '- Made information accessible beyond the elite\n'
                    '- Created the foundation for modern democracy through '
                    'informed citizenry\n'
                    '- Catalyzed every subsequent knowledge-based advancement\n'
                    '\n'
                    '## 2. **Electricity Harnessing & Distribution (1800s)**\n'
                    '**Justification:** While electricity itself is natural, '
                    'learning to generate, control, and distribute it '
                    'transformed civilization:\n'
                    '- Powers virtually all modern technology\n'
                    '- Enabled the Second Industrial Revolution\n'
                    '- Made possible: computers, telecommunications, medical '
                    'equipment, transportation systems\n'
                    '- Extended productive hours beyond daylight\n'
                    '- Fundamentally restructured how humans live and work\n'
                    '\n'
                    '## 3. **Antibiotics (1928)**\n'
                    "**Justification:** Alexander Fleming's discovery of "
                    'penicillin launched the antibiotic age:\n'
                    '- Doubled average human lifespan in the 20th century\n'
                    '- Turned once-fatal infections into treatable conditions\n'
                    '- Made modern surgery safe and practical\n'
                    '- Saved hundreds of millions of lives\n'
                    '- Allowed population growth that enabled modern '
                    "civilization's scale\n"
                    '\n'
                    '**Why these over others?** Agriculture, the wheel, and '
                    'the internet are strong contenders, but these three had '
                    'the most profound multiplier effects—each fundamentally '
                    'enabling countless other advances while directly '
                    'improving billions of lives.',
 'confidence_level': 'MEDIUM',
 'consensus_analysis': 'CONSENSUS LEVEL: majority\n'
                       'AREAS OF AGREEMENT:\n'
                       '- Writing is recognized as a foundational invention by '
                       '2/3 models (Gemini, GPT-5)\n'
                       '- Electricity/harnessing electricity is included in '
                       'all three lists\n'
                       '- The printing press is acknowledged as highly '
                       'significant by all models, though not all rank it\n'
                       '\n'
                       'KEY DIFFERENCES:\n'
                       '- GPT-5 ranks agriculture as #1, while Gemini and '
                       'Claude do not include it in their top 3\n'
                       '- Claude ranks antibiotics as #3, while the other '
                       'models do not include medical inventions\n'
                       '- Only Gemini ranks writing as #1, while GPT-5 ranks '
                       'it #2\n'
                       "- The printing press appears in Gemini's and Claude's "
                       "top 3, but not in GPT-5's\n"
                       '\n'
                       'CONFIDENCE: MEDIUM\n'
                       'REASONING: There is strong majority agreement on '
                       'electricity/harnessing electricity as a top-tier '
                       'invention (all three models include it), and majority '
                       'agreement on writing as foundational (2/3 models '
                       'include it). However, there is significant divergence '
                       'on the third position, with models selecting different '
                       'inventions (printing press, antibiotics, agriculture) '
                       'based on different weighting criteria. The models show '
                       'clear consensus that information/communication '
                       'technologies (writing, printing press) and energy '
                       'technologies (electricity) are among the most '
                       'impactful inventions, but disagree on whether medical '
                       'advances, agricultural revolution, or information '
                       'dissemination technologies deserve the third spot. The '
                       'reasoning across all models is high quality with clear '
                       'justifications, but the different prioritization of '
                       'criteria (foundational vs. life-saving vs. '
                       'knowledge-diffusing impacts) prevents unanimous '
                       'consensus.',
 'final_recommendation': '**FINAL RECOMMENDATION**\n'
                         '\n'
                         'Based on the majority consensus among the AI models, '
                         'the top 3 greatest inventions in history are:\n'
                         '\n'
                         '1.  **The Harnessing of Electricity**\n'
                         '2.  **Writing Systems**\n'
                         '3.  **The Printing Press**\n'
                         '\n'
                         '**Justification:**\n'
                         '\n'
                         '*   **Electricity (Unanimous Choice):** This is the '
                         'invention with the strongest consensus. As all three '
                         'models agreed, the ability to generate, distribute, '
                         'and utilize electrical power is the bedrock of the '
                         'modern world. It revolutionized every aspect of '
                         'society, from lighting and heating to medicine, '
                         'global communication, computing, and industry. Its '
                         'impact is unparalleled in its breadth and depth.\n'
                         '*   **Writing (Majority Choice - 2/3 models):** This '
                         'is a foundational, meta-invention. Writing enabled '
                         'the recording and preservation of history, '
                         'knowledge, law, and culture across generations. It '
                         'facilitated complex administration, advanced science '
                         'and mathematics, and allowed for the accumulation of '
                         'collective learning, which is the primary driver of '
                         'human progress. Without writing, all other '
                         'inventions would be far more difficult to develop '
                         'and disseminate.\n'
                         '*   **Printing Press (Majority Choice - 2/3 '
                         'models):** While not unanimously ranked, its '
                         'inclusion by two models and acknowledgment by all '
                         'signifies its critical role. The printing press '
                         'acted as a powerful accelerant. It democratized '
                         'knowledge by breaking the monopoly on information, '
                         'fueling the Reformation, the Scientific Revolution, '
                         'and the Enlightenment. It massively scaled up the '
                         'impact of writing, making the rapid and widespread '
                         'dissemination of ideas possible.\n'
                         '\n'
                         '**Important Disagreements Acknowledged:**\n'
                         '\n'
                         'This recommendation does not include **Agriculture** '
                         '(ranked #1 by one model) or **Antibiotics** (ranked '
                         '#3 by one model), despite their profound '
                         'importance.\n'
                         '\n'
                         '*   **Agriculture:** The argument for its primacy is '
                         'that it enabled the transition from nomadic '
                         'hunter-gatherer societies to settled civilizations, '
                         'making all subsequent progress possible. We '
                         'acknowledge this as a supremely foundational '
                         'development, but the consensus analysis prioritized '
                         'inventions that transformed *established* '
                         'civilization.\n'
                         '*   **Antibiotics:** The argument is that they '
                         'represent one of the greatest life-saving inventions '
                         'in history, drastically reducing mortality from '
                         'infection and enabling modern surgery. This is a '
                         'valid and crucial point. The recommendation '
                         'prioritizes broad, civilization-altering '
                         'infrastructural inventions, but we fully acknowledge '
                         'that on a human well-being metric, antibiotics are a '
                         'top-tier contender.\n'
                         '\n'
                         '**Confidence Level: MEDIUM**\n'
                         '\n'
                         'This recommendation is based on a clear majority '
                         'consensus on two categories of invention: **Energy '
                         '(Electricity)** and **Information/Communication '
                         '(Writing & Printing Press)**. The justification for '
                         'this ranking is strong and actionable. Confidence is '
                         'not "High" due to the legitimate and well-reasoned '
                         'disagreements on the third spot, highlighting that '
                         'any such ranking is inherently subjective based on '
                         'the criteria one values most (e.g., foundational vs. '
                         'life-saving impact).\n'
                         '\n'
                         '**Actionable Advice:**\n'
                         '\n'
                         'If this ranking is for a discussion or debate, you '
                         'can confidently put forward this list. To strengthen '
                         'your position, be prepared to:\n'
                         '1.  Champion the unanimous importance of '
                         'electricity.\n'
                         '2.  Explain the foundational role of writing as the '
                         '"invention of inventions."\n'
                         '3.  Justify the printing press as the critical '
                         'innovation that scaled knowledge and accelerated '
                         'progress.\n'
                         '4.  Acknowledge the powerful counter-arguments for '
                         'agriculture and antibiotics, as this shows a nuanced '
                         'understanding of the topic.',
 'gemini_response': 'Ranking the "greatest inventions" is a fascinating '
                    'challenge, as different inventions have impacted humanity '
                    'in diverse and profound ways. My ranking focuses on '
                    'inventions that provided foundational shifts, enabling '
                    'subsequent progress across multiple domains, and '
                    'fundamentally altering the course of human civilization.\n'
                    '\n'
                    'Here are my top 3 greatest inventions:\n'
                    '\n'
                    '---\n'
                    '\n'
                    '### 1. Writing\n'
                    '\n'
                    "*   **Why it's number one:** Writing is the bedrock of "
                    'complex civilization. Before writing, knowledge, laws, '
                    'history, and complex ideas were limited to oral '
                    'tradition, making them fragile, prone to distortion, and '
                    'difficult to scale beyond small communities.\n'
                    '*   **Justification:**\n'
                    '    *   **Enabled Complex Societies:** Writing allowed '
                    'for the creation of laws, administrative systems, tax '
                    'records, and contracts, which are essential for governing '
                    'large populations and organizing states.\n'
                    '    *   **Preserved and Accumulated Knowledge:** It '
                    'allowed for the accurate recording and transmission of '
                    'information across generations and distances. This meant '
                    'that knowledge could be built upon, rather than '
                    'constantly rediscovered, accelerating scientific, '
                    'philosophical, and technological progress.\n'
                    '    *   **Foundation for All Subsequent Information '
                    'Revolutions:** Without writing, there would be no books, '
                    "no printing press, no computers, and no internet. It's "
                    'the ultimate meta-invention for information.\n'
                    '\n'
                    '---\n'
                    '\n'
                    '### 2. Harnessing Electricity\n'
                    '\n'
                    "*   **Why it's number two:** While the discovery of "
                    'electricity is a scientific breakthrough, its '
                    '*harnessing* and application transformed every facet of '
                    'human life, powering the modern world as we know it.\n'
                    '*   **Justification:**\n'
                    '    *   **Revolutionized Daily Life:** From lighting '
                    'homes and streets to powering appliances, electricity '
                    'dramatically improved quality of life, extended '
                    'productive hours, and reduced manual labor.\n'
                    '    *   **Enabled the Second Industrial Revolution and '
                    'Modern Technology:** Electricity powered factories, '
                    'enabling mass production on an unprecedented scale. '
                    "Crucially, it's the fundamental energy source for "
                    'virtually all modern technology, including '
                    'telecommunications, computing, medicine, and advanced '
                    'manufacturing.\n'
                    '    *   **Transformed Communication and Information:** '
                    'The telegraph, telephone, radio, television, and '
                    'ultimately the internet all rely on electricity. It '
                    'enabled instant global communication, shrinking the world '
                    'and accelerating the exchange of ideas.\n'
                    '\n'
                    '---\n'
                    '\n'
                    '### 3. The Printing Press (with movable type)\n'
                    '\n'
                    "*   **Why it's number three:** While writing laid the "
                    'foundation for recording knowledge, the printing press '
                    'democratized it, making information accessible to the '
                    'masses and igniting intellectual revolutions.\n'
                    '*   **Justification:**\n'
                    '    *   **Democratized Knowledge and Fostered Literacy:** '
                    'Before the printing press, books were painstakingly '
                    'copied by hand, making them rare, expensive, and '
                    'accessible only to the elite. The printing press made '
                    'books affordable and widely available, leading to a '
                    'massive increase in literacy and the spread of '
                    'education.\n'
                    '    *   **Accelerated Scientific and Intellectual '
                    'Progress:** By allowing for the rapid and accurate '
                    'dissemination of scientific discoveries, philosophical '
                    'treatises, and political ideas, the printing press fueled '
                    'the Renaissance, the Reformation, and the Scientific '
                    'Revolution, fundamentally shaping the modern world.\n'
                    '    *   **Enabled Mass Communication and Public '
                    'Discourse:** It created the first form of mass media, '
                    'allowing for the widespread distribution of news, '
                    'pamphlets, and propaganda, which played a crucial role in '
                    'political movements and the formation of public opinion.\n'
                    '\n'
                    '---\n'
                    '\n'
                    'These three inventions, in their respective eras, each '
                    'created a paradigm shift that profoundly and irreversibly '
                    'altered human society, paving the way for countless other '
                    'innovations and the world we inhabit today.',
 'gpt5_response': 'Here’s one defensible ranking, using three criteria: '
                  'breadth of impact on human life, longevity of relevance, '
                  'and how much each invention enables other advances.\n'
                  '\n'
                  '1) Agriculture (domestication of plants/animals, farming)\n'
                  '- Turned humanity from nomadic bands into settled '
                  'societies, enabling population growth, cities, '
                  'specialization, governance, and eventually science and '
                  'art.\n'
                  '- Created reliable food surpluses, which made all later '
                  'complex institutions (states, markets, schools, armies) '
                  'possible.\n'
                  '- Without agriculture, most other “civilization-scale” '
                  'inventions could not have emerged.\n'
                  '\n'
                  '2) Writing (and numerical notation)\n'
                  '- Externalized human memory, making laws, contracts, '
                  'history, mathematics, and large-scale administration '
                  'feasible.\n'
                  '- Enabled cumulative knowledge across generations and '
                  'geographies—the foundation of science, finance, and '
                  'technology transfer.\n'
                  '- Transformed trust and coordination: you can do '
                  'accounting, run empires, and build complex supply chains '
                  'only with reliable records.\n'
                  '\n'
                  '3) Electricity generation and distribution (the grid)\n'
                  '- A platform technology that powers lighting, '
                  'refrigeration, modern medicine, communications, computing, '
                  'and automated industry.\n'
                  '- Converts diverse primary energies into precise, clean, '
                  'controllable power at scale; nothing else matches its '
                  'versatility.\n'
                  '- Multiplies human productivity and health (from neonatal '
                  'care to vaccines’ cold chain) and underpins the digital '
                  'world.\n'
                  '\n'
                  'Close contenders worth noting\n'
                  '- The printing press (mass knowledge diffusion; accelerant '
                  'for science, education, and democracy).\n'
                  '- Modern sanitation and clean water (arguably the single '
                  'greatest lifesaver in history).\n'
                  '- Vaccination and antibiotics (massive reductions in '
                  'mortality and morbidity).\n'
                  '- The steam engine (industrialization) and the '
                  'semiconductor/internet (information age).\n'
                  '\n'
                  'Reasonable people might swap #3 for the printing press or '
                  'sanitation depending on whether you weight knowledge '
                  'acceleration or lives saved most heavily. But agriculture '
                  'and writing are the deepest foundations; electricity is the '
                  'modern multiplier.',
 'question': 'Rank the top 3 greatest inventions in history and justify your '
             'choices',
 'reasoning_notes': '\n'
                    'Model Consultation Process:\n'
                    '• Gemini 2.5 Flash: Optimized for speed and '
                    'cost-efficiency\n'
                    '• Claude 4.5 Sonnet: Strong reasoning and coding '
                    'capabilities  \n'
                    '• GPT-5: Latest OpenAI model excelling at coding, '
                    'writing, and reasoning\n'
                    '• Deepseek V3.1: Final consensus analysis and '
                    'recommendation\n'
                    '\n'
                    'Settings Used:\n'
                    '• Temperature: 0.3 (more deterministic)\n'
                    '• Consensus Requirement: Majority (2/3)\n'
                    '• Max Tokens: Variable per model for optimal response '
                    'quality\n'
                    '\n'
                    'This multi-model approach reduces individual model biases '
                    'and provides more robust decision support.\n'}