build-with-ag2

๐ŸŒŸ Build with AG2

Are you building with AG2? Add your project to the list by submitting code through pull requests or add a link to your own repository!

A curated collection of awesome agentic applications built with AG2.

๐Ÿ—บ๏ธ Learning Path

New to AG2? Follow this progression:

  1. Learn the patterns โ†’ Agent Pattern Cookbook โ€” 13 runnable examples from simple two-agent chat to hierarchical multi-agent systems.
  2. See real apps โ†’ Browse the Featured Agentic Apps section below for complete, documented projects.
  3. Add a UI โ†’ Explore AG-UI Examples to connect your agents to a browser frontend.
  4. Deep dive โ†’ Work through the 7-module workshop for a comprehensive hands-on course.
  5. Go to production โ†’ Use the GCP Agent Starter Pack to deploy your agent to Googleโ€™s Cloud Run with CI/CD and observability.

๐Ÿ–ฅ๏ธ AG-UI Examples

Examples of connecting AG2 agents to browser frontends using the AG-UI protocol. Each example includes a FastAPI backend and a vanilla HTML/JS frontend โ€” no React or build step required.

โ˜๏ธ Deploy to Google Cloud

๐Ÿš€ Getting Started

  1. Clone the repository

    git clone https://github.com/ag2ai/build-with-ag2.git
    
  2. Navigate to the desired project directory

    cd build-with-ag2/travel-planner
    
  3. Install the required dependencies

    # Requires Python >= 3.9, < 3.14
    pip install -r requirements.txt
    
  4. Follow the project-specific instructions in each projectโ€™s README.md file to set up and run the app.

๐Ÿค Contributing to AG2 Open Source

Created something with AG2? Contributions are welcome! If you have any ideas, improvements, or new apps to add, please create a new GitHub Issue or submit a pull request. Make sure to follow the existing project structure and include a detailed README.md for each new app.

Refer to the external repository guide to link to your own repositories showcasing projects built with AG2.

Option 2: Creating a new project

Code Style and Linting

This project uses pre-commit hooks to maintain code quality. Before contributing:

  1. Install pre-commit:
pip install pre-commit
pre-commit install
  1. The hooks will run automatically on commit, or you can run them manually:
pre-commit run --all-files

๐ŸŒŸ Stay Updated

Star this repository and AG2 to receive notifications about the newest and coolest agentic applications!