/ai-agents-starter

This repo serves as a starter pack to explore and build Autonomous AI Agents using different frameworks

Primary LanguagePythonMIT LicenseMIT

AI Agents Starter Pack

This repo serves as a starter pack to help beginners kickstart their journey into creating autonomous agents using the Phi Framework.

Getting Started

1. Clone the Repository

Start by cloning this repository to your local machine:

git clone https://github.com/raihankhan-rk/ai-agents-starter.git

2. Set Up a Virtual Environment

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

3. Install Required Dependencies

After activating your virtual environment, install the necessary packages by running:

pip install -r requirements.txt

4. Obtain Groq Cloud API Key

To run the autonomous agent, you'll need an API key from Groq Cloud. Follow these steps to obtain one:

  1. Visit the Groq Console website.
  2. Sign up or log in to your account.
  3. Navigate to the API Keys section in your account settings.
  4. Click on "Create API Key".
  5. Copy the generated API key.

5. Add Groq API Key to .env File

To keep your API key secure, you'll need to add it to a .env file in the root of the project:

  1. In the root directory of the project, rename .env.local to .env
  2. Replace the GROQ_API_KEY with your <API_KEY>
GROQ_API_KEY=YOUR_API_KEY_HERE

Run the Research Assistant

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.

Contact & Support

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!