{"id":30107099,"url":"https://github.com/hari7261/negotiation-multiagent","last_synced_at":"2025-08-10T01:33:33.456Z","repository":{"id":302470975,"uuid":"1012568047","full_name":"hari7261/Negotiation-MultiAgent","owner":"hari7261","description":"Simulate realistic price negotiations between Buyer and Seller agents using LLM-generated messages and agent logic.","archived":false,"fork":false,"pushed_at":"2025-07-02T14:28:45.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T15:37:05.486Z","etag":null,"topics":["ai-agent","ai-agent-tools","ai-agents","flask","gemini-llm","google-generative-ai","hari7261","llm","multi-agent-systems","multiagent","negotiation-tool","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hari7261.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-02T14:27:16.000Z","updated_at":"2025-07-02T14:32:06.000Z","dependencies_parsed_at":"2025-07-02T15:39:45.557Z","dependency_job_id":"d78f5700-b887-491e-b2ee-71e7df3ee61e","html_url":"https://github.com/hari7261/Negotiation-MultiAgent","commit_stats":null,"previous_names":["hari7261/negotiation-multiagent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hari7261/Negotiation-MultiAgent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hari7261%2FNegotiation-MultiAgent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hari7261%2FNegotiation-MultiAgent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hari7261%2FNegotiation-MultiAgent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hari7261%2FNegotiation-MultiAgent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hari7261","download_url":"https://codeload.github.com/hari7261/Negotiation-MultiAgent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hari7261%2FNegotiation-MultiAgent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269663403,"owners_count":24455804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","ai-agent-tools","ai-agents","flask","gemini-llm","google-generative-ai","hari7261","llm","multi-agent-systems","multiagent","negotiation-tool","python"],"created_at":"2025-08-10T01:33:32.637Z","updated_at":"2025-08-10T01:33:33.427Z","avatar_url":"https://github.com/hari7261.png","language":"Python","readme":"# 🤖 AI-Powered Multi-Agent Negotiation Platform\r\n\r\n![AI Negotiation Platform](https://img.shields.io/badge/AI-Negotiation-6366f1?style=for-the-badge\u0026logo=ai\u0026logoColor=white)\r\n![Python](https://img.shields.io/badge/python-3.9+-blue.svg?style=for-the-badge\u0026logo=python\u0026logoColor=white)\r\n![Flask](https://img.shields.io/badge/flask-%23000.svg?style=for-the-badge\u0026logo=flask\u0026logoColor=white)\r\n![Google Gemini](https://img.shields.io/badge/Gemini-AI-orange?style=for-the-badge\u0026logo=google\u0026logoColor=white)\r\n\r\nA sophisticated AI-powered negotiation platform that simulates real-world negotiations using multiple intelligent agents. Built with Google's Gemini AI, this platform demonstrates advanced negotiation strategies, autonomous decision-making, and dynamic price optimization.\r\n\r\n## 🌟 Features\r\n\r\n### 🎯 Core Capabilities\r\n\r\n- **Multi-Agent System**\r\n  - 🤝 Buyer Agent: Strategic price negotiation with learning capabilities\r\n  - 💼 Seller Agent: Adaptive pricing based on market conditions\r\n  - ⚖️ Mediator Agent: Facilitates negotiations and suggests compromises\r\n\r\n- **Real-Time Negotiation**\r\n  - 📊 Live negotiation progress tracking\r\n  - 💬 Dynamic message exchange between agents\r\n  - 🎯 Automatic price convergence detection\r\n\r\n- **Advanced Analytics**\r\n  - 📈 Negotiation efficiency metrics\r\n  - 🎯 Fair value index calculation\r\n  - 🧮 Complexity score assessment\r\n  - 📋 Detailed transaction history\r\n\r\n### 💫 User Experience\r\n\r\n- **Modern UI/UX**\r\n  - 🎨 Clean, intuitive interface\r\n  - 📱 Fully responsive design\r\n  - ✨ Smooth animations and transitions\r\n  - 🌓 Light/Dark mode support\r\n\r\n- **Real-Time Updates**\r\n  - ⚡ Live negotiation progress\r\n  - 🔄 Automatic status updates\r\n  - 📊 Dynamic price tracking\r\n\r\n## 🛠️ Technology Stack\r\n\r\n- **Backend**\r\n  - 🐍 Python 3.9+\r\n  - 🌶️ Flask Web Framework\r\n  - 🤖 Google Gemini AI API\r\n  - 🗄️ SQLite Database\r\n\r\n- **Frontend**\r\n  - 🎨 Modern CSS with Custom Properties\r\n  - 📱 Responsive Design\r\n  - 🎭 Custom Animations\r\n  - ⚡ Vanilla JavaScript\r\n\r\n## 🚀 Getting Started\r\n\r\n### Prerequisites\r\n\r\n- Python 3.9 or higher\r\n- Google Gemini API key\r\n- Modern web browser\r\n\r\n### Installation\r\n\r\n1. Clone the repository:\r\n   ```bash\r\n   git clone https://github.com/yourusername/negotiation-multiagent.git\r\n   cd negotiation-multiagent\r\n   ```\r\n\r\n2. Run the setup script:\r\n   - Windows: `setup.bat`\r\n   - Unix/Mac: `./setup.sh`\r\n\r\n3. Configure your environment:\r\n   ```bash\r\n   copy .env.example .env\r\n   # Edit .env and add your Gemini API key\r\n   ```\r\n\r\n4. Start the application:\r\n   - Windows: `run.bat`\r\n   - Unix/Mac: `./run.sh`\r\n\r\n5. Open your browser and navigate to:\r\n   ```\r\n   http://localhost:5000\r\n   ```\r\n\r\n## 🎯 How It Works\r\n\r\n### Negotiation Process\r\n\r\n1. **Initialization**\r\n   - User inputs item details and price ranges\r\n   - System initializes three AI agents: buyer, seller, and mediator\r\n\r\n2. **Negotiation Rounds**\r\n   - Buyer makes initial offer\r\n   - Seller responds with counter-offer\r\n   - Mediator intervenes periodically to facilitate agreement\r\n   - Process continues until agreement or maximum rounds reached\r\n\r\n3. **Agreement Detection**\r\n   - System automatically detects when agents reach agreement\r\n   - Validates final price against initial constraints\r\n   - Records successful negotiations in database\r\n\r\n### AI Agent Behaviors\r\n\r\n#### 🤝 Buyer Agent\r\n- Analyzes item value and market conditions\r\n- Implements strategic bidding patterns\r\n- Adapts offers based on seller responses\r\n- Learns from negotiation history\r\n\r\n#### 💼 Seller Agent\r\n- Evaluates market position and item worth\r\n- Employs dynamic pricing strategies\r\n- Considers buyer's negotiation pattern\r\n- Maintains profit margins while being flexible\r\n\r\n#### ⚖️ Mediator Agent\r\n- Monitors negotiation progress\r\n- Identifies deadlock situations\r\n- Suggests compromises based on both positions\r\n- Helps optimize for mutual benefit\r\n\r\n## 📊 Analytics \u0026 Metrics\r\n\r\n### Efficiency Metrics\r\n- **Negotiation Speed**: Rounds to agreement\r\n- **Price Convergence**: Rate of offer adjustments\r\n- **Success Rate**: Percentage of successful negotiations\r\n\r\n### Fair Value Index\r\n- Market value analysis\r\n- Price trend correlation\r\n- Historical transaction comparison\r\n\r\n### Complexity Score\r\n- Number of rounds required\r\n- Price movement patterns\r\n- Intervention frequency\r\n\r\n## 🎨 UI/UX Features\r\n\r\n### Real-Time Updates\r\n- Animated progress indicators\r\n- Live message updates\r\n- Dynamic price tracking\r\n\r\n### Interactive Elements\r\n- Negotiation timeline\r\n- Price history graphs\r\n- Status indicators\r\n\r\n### Responsive Design\r\n- Mobile-first approach\r\n- Adaptive layouts\r\n- Touch-friendly interfaces\r\n\r\n## 📈 Future Enhancements\r\n\r\n- 🌐 Multi-language support\r\n- 📊 Advanced analytics dashboard\r\n- 🤝 Multi-party negotiations\r\n- 🔄 Integration with real market data\r\n- 🎯 Custom negotiation strategies\r\n\r\n## 🤝 Contributing\r\n\r\nContributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.\r\n\r\n## 📜 License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n\r\n## 👏 Acknowledgments\r\n\r\n- Google Gemini AI for providing the advanced language model\r\n- Flask community for the excellent web framework\r\n- All contributors who have helped shape this project\r\n\r\n---\r\n\r\n\u003cp align=\"center\"\u003e\r\nMade with ❤️ by hari7261\r\n\u003c/p\u003e\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhari7261%2Fnegotiation-multiagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhari7261%2Fnegotiation-multiagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhari7261%2Fnegotiation-multiagent/lists"}