Follow these steps to set up and run the AI Assistant project.
- Python 3.7 or higher
- pip (Python package manager)
- Clone the repository:
git clone https://github.com/yourusername/ai-assistant.git cd ai-assistant
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
- Set up your environment variables:
Create a
.envfile in the project root and add your API keys:
ANTHROPIC_API_KEY=your_anthropic_api_key TAVILY_API_KEY=your_tavily_api_key
Run the main script:
python main.py
Follow the on-screen instructions to interact with the AI assistant.
- Type 'automode [number]' to enter Autonomous mode with a specific number of iterations.
- While in automode, press Ctrl+C at any time to exit and return to regular chat.
- Type 'exit' to end the session.
If you encounter any issues, please check the following:
- Ensure all required environment variables are set correctly in the
.envfile. - Verify that you're using a compatible Python version.
- Make sure all dependencies are installed correctly.
If problems persist, please open an issue on the GitHub repository.