/oreilly_live_training_autogen

Repo for my live-training about autogen

Primary LanguageJupyter Notebook

O'Reilly Live Trainining - Getting Started with AutoGen

Setup

Conda

  • Install anaconda
  • This repo was tested on a Mac with python=3.11
  • Create an environment: conda create -n oreilly-autogen python=3.11
  • Activate your environment with: conda activate oreilly-autogen
  • Install requirements with: pip install -r requirements.txt
  • Setup your openai API key

Pip

  1. Create a Virtual Environment: Navigate to your project directory. Make sure you hvae python3.11 installed! If using Python 3's built-in venv:

    python -m venv oreilly_env

    If you're using virtualenv:

    virtualenv oreilly-autogen
  2. Activate the Virtual Environment:

    • On Windows:
      .\oreilly-autogen\Scripts\activate
    • On macOS and Linux:
      source oreilly-autogen/bin/activate
  3. Install Dependencies from requirements.txt:

    pip install python-dotenv
    pip install -r requirements.txt
  4. Setup your openai API key

Remember to deactivate the virtual environment once you're done by simply typing:

deactivate

Setup your .env file

  • Change the .env.example file to .env and add your OpenAI API key.

To use this Environment with Jupyter Notebooks:

  • pip install jupyter
  • python3 -m ipykernel install --user --name=oreilly-autogen

Notebooks

Here are the notebooks available in the notebooks/ folder:

  1. Autogen Demo: Building Our First Agent

    Open In Colab

  2. Autogen Demo: Student Assistant Expert

    Open In Colab

  3. Autogen Demo: Retrieval Augmented Chat

    Open In Colab

  4. Autogen Demo: Writer Commander Safeguard Multi-Agent Coding

    Open In Colab

  5. Autogen Demo: Dynamic Group Chat

    Open In Colab

  6. Autogen Demo: Agent Builder Recipe

    Open In Colab

  7. Autogen Demo: Research Assistant

    Open In Colab

  8. Autogen Demo: Personal Assistant

    Open In Colab

  9. Building a Autogen Agent: Desktop Tasks

    Open In Colab

  10. Demo: Autogen Function Calling

    Open In Colab