Skip to content

mohdibrahimofficial/Python-Agents-for-Beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Agents for Beginners

Welcome to Agents for Beginners โ€” a simple, no-hype repository for learning how to build basic AI agents using pure Python.

This project is inspired by and made possible thanks to this wonderful tutorial:
๐Ÿ‘‰ Thank you for this amazing guide!


๐Ÿ“ฆ Repository Structure

๐Ÿ”ฐ Beginner

Designed for those just starting out. Each folder here introduces foundational agent concepts:

  • basic: The simplest agent examples to get started.
  • structured_outputs: Learn how agents can return structured information.
  • retrieval: Integrating search and knowledge retrieval into agents.
  • tools: How agents can use tools (like calculators or APIs).

โš™๏ธ Workflow Patterns

For exploring more advanced agent workflows:

  • prompt_chaining: Learn how to chain prompts for complex tasks.
  • routing: Direct tasks to the appropriate agent or module.
  • parallelization: Running agent tasks concurrently.
  • orchestra: Coordinating multiple agents in a structured pipeline.

โš™๏ธ Requirements

To run this project, you'll need:

  • Python 3.9+
  • An OpenAI or Azure OpenAI API key

๐Ÿš€ Getting Started

Follow these steps to set up the project:

1. Clone the Repository
git clone https://github.com/mohdibrahimofficial/Agents-for-Beginners.git
cd Agents-for-Beginners
  1. Set Up Environment Variables
Rename .env.example to .env and add your OpenAI/Azure OpenAI API key inside it.
  1. Create and Activate a Virtual Environment
python -m venv venv

# Activate it
# On Windows
venv\Scripts\activate

# On macOS/Linux
source venv/bin/activate
  1. Install Requirements
pip install -r requirements.txt

About

Learn by doing!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages