DebatingAgents — Gemini Agents | Neura Market
    Neura MarketNeura Market/Gemini
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityGemsExtensionsTrendingGenerate
    GeminiAgentsDebatingAgents
    Back to Agents
    DebatingAgents

    DebatingAgents

    smaranjitghose June 16, 2025
    4 copies 0 downloads

    An intelligent system that orchestrates a debate between two AI models to refine answers and reach consensus. Perfect for tackling math, logic, fact-checking, or coding challenges with enhanced reliability through collaborative reasoning.

    Agent Definition
    # šŸ—£ļø DebatingAgents
    
    [![Python 3.13+](https://img.shields.io/badge/Python-3.13+-blue.svg)](https://www.python.org/downloads/)
    [![OpenAI](https://img.shields.io/badge/OpenAI-GPT--4o--mini-green.svg)](https://openai.com/)
    [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
    
    An intelligent system that orchestrates a debate between two AI models to refine answers and reach consensus. Perfect for tackling math, logic, fact-checking, or coding challenges with enhanced reliability through collaborative reasoning. 
    
    
    ## šŸ–¼ļø Snapshot
    
    ![output](./assets/output.png)
    
    
    ## šŸ”§ Prerequisites
    
    - Python 3.13 or higher
    - uv (efficient Python package management)
    - OpenAI API key
    - Google Claude API key
    
    ## šŸ“„ Installation
    
    - Clone the project
    
    ```
    git clone https://github.com/smaranjitghose/DebatingAgents
    ```
    
    - Navigate inside the directory
    
    ```
    cd DebatingAgents
    ```
    
    - Create a .env file and store the API keys from OpenAI and Google Gemini as:
    
    ```
    OPENAI_API_KEY=your-openai-api-key-here
    GEMINI_API_KEY=your-gemini-api-key-here
    ```
    
    - Run the agent using uv (on the first run, it will create a virtual environment and install dependencies)
    
    ```
    uv run main.py
    ```
    
    - Start the debate with examples:
    
    ```
    šŸ—£ļø You: How many prime numbers are less than 100?
    ```
    
    ## šŸ’” Usage Examples
    
    - Math Problems
    How many integers between 1 and 1000 are divisible by 3, 5, or 7 but not 3 and 5?
    
    - Logic Puzzles
    You found a treaure chest at the bottom of the Indian Ocean. There are 60 diamonds, twice as many rubies and one-third as many emeralds as rubies. What are the number of diamonds, rubies and emeralds you have?
    
    - Programming Assistance
    How many lines of code are needed for a basic binary search algorithm?
    
    ## šŸ” How It Works
    
    - API Integration 🌐 - Connects to OpenAI and Gemini APIs using secure environment variables.
    - Response Validation āœ… - Uses Pydantic to ensure structured responses (integer answer and explanation).
    - Debate Protocol āš”ļø

    Tags

    ai-agentsdebating-agentdesign-patterngeminigenerative-aigpt-4openaipython

    Comments

    More Agents

    View all
    research

    NotebookLM

    Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.

    G
    Google
    browser

    Project Mariner (Browser Agent)

    Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.

    G
    Google DeepMind
    multimodal

    Project Astra (Multimodal Agent)

    Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.

    G
    Google DeepMind
    enterprise

    Gemini Enterprise Agent Platform

    Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.

    G
    Google Cloud
    research

    Gemini Deep Research Agent

    Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.

    G
    Google
    canvas

    Gemini Canvas Agent

    Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.

    G
    Google

    Stay up to date

    Get the latest Gemini prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Gemini and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    Ā© 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.