This repository leverages Microsoft Autogen 0.4, Azure OpenAI and integrates it with Streamlit, to build an end to end multi agents application, this repo makes it easy to build test and deploy an advanced multi agent framework, based on Magentic One
๐ February 25, 2025: We have a new React based UI with new business use cases
๐ January 11, 2025: The repo now support Autogen 0.4.0 stable version
๐ December 3, 2024: The repo now support one click deployment with Azure Developer CLI, if you would like to run it with the full process localy you can check v0.21
๐ November 18, 2024: we are porting this repo to Autogen 0.4, A new event driven, asynchronous architecture for AutoGen and Magentic One
Dream Team offers the following key features:
- Advanced multi agent framework: this solution is based on the popular framework Autogen(35K stars) and Magentic One
- Friendly UI: easy way to build and share data apps powered by React / Vite.js / Tailwind / Shadcn
- Single line deployment: developer-friendly deployment that accelerates your path from a local development environment to Azure with single line of code - azd up.
- Secure code execution: Fast access to secure sandboxed with strong isolation environments that are ideal for running code or applications with Azure Container Apps dynamic sessions.
- Managed Identities: Built in Azure Managed identities to eliminate the need for developers to manage these credentials
- Observability & Debugging: Built-in features and tools for tracking, tracing, and debugging agent interactions and workflows, including PromptFlow tracing.
- Install Azure Developer CLI.
- Ensure you have access to an Azure subscription
- Docker - Follow the official Docker installation instructions - make sure your docker is loged in (docker login -u "username" -p "password" )
- Python version >= 3.10, < 3.13
- Install UV - optional for running locally
git clone https://github.com/Azure-Samples/dream-team
azd auth login
You need to choose your preferred region (you can start with east us or sweden central or any other available region)
cd frontend && npm install -D @types/react @types/react-dom @types/node typescript @vitejs/plugin-react vite
azd up
- Under frontend folder update sample.env to .env file and copy the backend url to VITE_BASE_URL ->run azd up again
- While using Web Surfer agent, you might want to change Content Safety on Azure OpenAI to accomodate your needs
- currently it is "bring your own AI Search" (BYOS) - since its assuming you have your own search engine, we are working on a solution to make it easier for you
- you must add two ENV variables to backend service to connect to your search engine
AZURE_SEARCH_SERVICE_ENDPOINT
- your search engine endpointAZURE_SEARCH_ADMIN_KEY
- your search engine key (we are working to enable managed identity for this service)
There are two parts to this project: the backend and the frontend. The backend is written in Python, and the frontend is written in JavaScript using React.
cd backend
Set up a virtual environment (Preferred)
uv venv
Once youโve created a virtual environment, you may activate it.
On Windows, run:
.venv\Scripts\activate
On Unix or MacOS, run:
source .venv/bin/activate
To deactivate :
deactivate
More information about virtual environments can be found here
uv sync
playwright install --with-deps chromium
- If you used AZD to deploy the resources just run the code below
azd env get-values > .env
- Alternatively, copy
.env.sample
(under backend) into.env
Important: Magentic-One code uses code execution, you need to have Docker installed to run the examples if you use local execution
uvicorn main:app --reload
cd frontend
npm run dev
If your app is ready, you can browse to (typically) http://localhost:8501 to see the app in action.
Check these resources: