This repo serves as a starter pack to help beginners kickstart their journey into creating autonomous agents using the Phi Framework.
Start by cloning this repository to your local machine:
git clone https://github.com/raihankhan-rk/ai-agents-starter.git
To ensure that all dependencies are managed properly, it's recommended to set up a virtual environment:
For macOS/Linux:
python3 -m venv venv
source venv/bin/activate
For Windows:
python -m venv venv
venv\Scripts\activate
After activating your virtual environment, install the necessary packages by running:
pip install -r requirements.txt
To run the autonomous agent, you'll need an API key from Groq Cloud. Follow these steps to obtain one:
- Visit the Groq Console website.
- Sign up or log in to your account.
- Navigate to the API Keys section in your account settings.
- Click on "Create API Key".
- Copy the generated API key.
To keep your API key secure, you'll need to add it to a .env file in the root of the project:
- In the root directory of the project, rename
.env.local
to.env
- Replace the
GROQ_API_KEY
with your <API_KEY>
GROQ_API_KEY=YOUR_API_KEY_HERE
Once you've set up everything and customized your query, you can run the research assistant by executing the following command:
python research_assistant.py
The AI Agent will perform the research based on your query, generate a detailed report, and print it in markdown format in the terminal.
If you have any questions or need support, feel free to reach out to me:
Email: hello@raihankhan.dev Twitter: @raihankhan_rk
Happy coding, and welcome to the world of AI!