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.
# š£ļø DebatingAgents [](https://www.python.org/downloads/) [](https://openai.com/) [](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  ## š§ 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 āļø
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.
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.
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.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
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.