mirror of
https://github.com/UmutAlihan/custom_agent_tutorial.git
synced 2024-05-19 15:57:30 +03:00
main
Setting Up and Running Custom Agent Script
Prerequisites
-
Install Anaconda:
Download Anaconda from https://www.anaconda.com/. -
Create a Virtual Environment:
conda create -n agent_env python=3.10 pip -
Activate the Virtual Environment:
conda activate agent_env
Clone and Navigate to the Repository
-
Clone the Repo:
git clone https://github.com/john-adeojo/custom_agent_tutorial.git -
Navigate to the Repo:
cd /path/to/your-repo/custom_agent_tutorial -
Install Requirements:
pip install -r requirements.txt
Configure API Keys
- Open the
config.yaml: Update your keys, see next step for links to get your own API keys.
nano config.yaml
- Enter API Keys:
- Serper API Key: Get it from https://serper.dev/
- OpenAI API Key: Get it from https://openai.com/
Run Your Query
python agent.py run
Then run your query
Description
Languages
Python
100%