This bot is designed to assist with debates, negotiations, fact-checking, cognitive bias detection, contract analysis, and salary negotiations.
- Introduction
- Features
- Project Structure
- Installation
- Usage
- Configuration
- Deployment
- Testing
- Contributing
- License
The Argument and Negotiation Master Bot is a versatile tool designed to assist users in various scenarios such as debates, negotiations, fact-checking, cognitive bias detection, contract analysis, and salary negotiations. It leverages advanced AI models to provide insightful and accurate responses.
- Debate Assistance: Generate and analyze arguments for and against a given topic.
- Negotiation Support: Provide negotiation tactics and analyze offers.
- Fact-Checking: Verify the accuracy of statements.
- Cognitive Bias Detection: Identify cognitive biases in arguments.
- Contract Analysis: Analyze contract clauses for potential issues.
- Salary Negotiation: Offer advice on salary negotiations.
argument-negotiation-bot/
├── __pycache__/
├── .flake8
├── .gitignore
├── .pre-commit-config.yaml
├── .pytest_cache/
│ ├── .gitignore
│ ├── CACHEDIR.TAG
│ ├── README.md
│ └── v/
├── .vscode/
│ └── settings.json
├── core/
│ ├── __init__.py
│ ├── __pycache__/
│ ├── bias_detection.py
│ ├── contract_analysis.py
│ ├── debate.py
│ ├── fact_check.py
│ ├── negotiation.py
│ └── salary_negotiation.py
├── improvement-deployment-plan.md
├── LICENSE
├── main.py
├── modal_deploy.py
├── overall-development-plan
├── PoeServerBotGuide.txt
├── pyproject.toml
├── README.md
├── requirements.in
├── requirements.txt
├── server-bot-quick-start/
│ ├── .flake8
│ └── ...
├── tests/
│ ├── __init__.py
│ ├── __pycache__/
│ ├── test_bias_detection.py
│ ├── test_contract_analysis.py
│ ├── test_debate.py
│ ├── test_fact_check.py
│ ├── test_negotiation.py
│ └── test_salary_negotiation.py
├── utils/
│ ├── __init__.py
│ ├── __pycache__/
│ ├── database.py
│ ├── error_handling.py
│ ├── external_api.py
│ ├── helpers.py
│ └── prompt_engineering.py
├── venv/
│ └──-
Clone the repository:
git clone https://github.com/yourusername/argument-negotiation-bot.git cd argument-negotiation-bot -
Install dependencies:
pip install -r requirements.txt
-
Set up pre-commit hooks:
pre-commit install
-
Run the bot locally:
uvicorn main:app --reload
-
Interact with the bot: Access the bot at
http://localhost:8000and use the/processendpoint to send messages.
- Environment Variables:
DATABASE_URL: URL for
the
database connection.
- OPENAI_API_KEY: API key for OpenAI.
- Logging Configuration:
Configure logging settings in
main.pyusing theconfigure_loggingfunction.
We recommend using Modal for deployment. Follow these steps:
-
Install the Modal client:
pip install modal-client
-
Set up your Modal token:
modal token new --source poe
-
Deploy to Modal:
git clone https://github.com/poe-platform/server-bot-quick-start cd server-bot-quick-start pip install -r requirements.txt modal deploy echobot.py
-
Run unit tests:
pytest
-
Test individual functionalities: Each core functionality has its own test file in the
tests/directory.
We welcome contributions! Please follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Make your changes.
-
Commit your changes:
git commit -m "Add your commit message" -
Push to the branch:
git push origin feature/your-feature-name
-
Create a Pull Request.
This project is licensed under the 3-Clause BSD License. See the LICENSE file for details.
Feel free to customize this README further based on your specific needs and additional details about your project.