https://github.com/john-adeojo/custom_agent_tutorial
https://github.com/john-adeojo/custom_agent_tutorial
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/john-adeojo/custom_agent_tutorial
- Owner: john-adeojo
- Created: 2024-05-10T15:12:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-22T18:52:43.000Z (11 months ago)
- Last Synced: 2024-08-14T07:07:39.988Z (8 months ago)
- Language: Python
- Size: 58.6 KB
- Stars: 116
- Watchers: 5
- Forks: 50
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - john-adeojo/custom_agent_tutorial - (Python)
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