An open API service indexing awesome lists of open source software.

https://github.com/john-adeojo/custom_agent_tutorial


https://github.com/john-adeojo/custom_agent_tutorial

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Setting Up and Running Custom Agent Script

### Prerequisites
1. **Install Anaconda:**
Download Anaconda from [https://www.anaconda.com/](https://www.anaconda.com/).

2. **Create a Virtual Environment:**
```bash
conda create -n agent_env python=3.10 pip
```

3. **Activate the Virtual Environment:**
```bash
conda activate agent_env
```

### Clone and Navigate to the Repository
1. **Clone the Repo:**
```bash
git clone https://github.com/john-adeojo/custom_agent_tutorial.git
```

2. **Navigate to the Repo:**
```bash
cd /path/to/your-repo/custom_agent_tutorial
```

3. **Install Requirements:**
```bash
pip install -r requirements.txt
```

### Configure API Keys
1. **Open the `config.yaml`:**
Update your keys, see next step for links to get your own API keys.
```bash
nano config.yaml
```

3. **Enter API Keys:**
- **Serper API Key:** Get it from [https://serper.dev/](https://serper.dev/)
- **OpenAI API Key:** Get it from [https://openai.com/](https://openai.com/)

### Run Your Query
```bash
python agent.py run
```
Then run your query