AutoGen: A Programming Framework for Agentic AI

This repository profile is provided by osrepos.com, an open source repository discovery platform.

AutoGen: A Programming Framework for Agentic AI

Summary

AutoGen is a versatile programming framework from Microsoft designed for building multi-agent AI applications. It empowers AI agents to operate autonomously or collaborate seamlessly with human users, streamlining the execution of complex tasks. The framework offers a layered, extensible design, providing both high-level APIs for rapid prototyping and low-level components for fine-grained control.

Repository Information

Analyzed by OSRepos on March 30, 2026

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

AutoGen is a powerful programming framework developed by Microsoft for creating multi-agent AI applications. It enables AI agents to act autonomously or collaborate with humans, facilitating complex task execution. While AutoGen continues to be maintained, users new to the framework are encouraged to explore the Microsoft Agent Framework, as announced in recent updates.

Installation

AutoGen requires Python 3.10 or later.

To install the core components and OpenAI client, use pip:

pip install -U "autogen-agentchat" "autogen-ext[openai]"

For a no-code GUI experience, you can install AutoGen Studio:

pip install -U "autogenstudio"

Refer to the official AutoGen documentation for detailed installation instructions and migration guides for previous versions.

Examples

Here are a few quickstart examples demonstrating AutoGen's capabilities. Remember to set your OPENAI_API_KEY environment variable before running these examples.

Hello World

Create a simple assistant agent using OpenAI's GPT-4o model.

import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient

async def main() -> None:
    model_client = OpenAIChatCompletionClient(model="gpt-4.1")
    agent = AssistantAgent("assistant", model_client=model_client)
    print(await agent.run(task="Say 'Hello World!'"))
    await model_client.close()

asyncio.run(main())

Web Browsing with MCP Server

Create a web browsing assistant agent that utilizes the Playwright MCP server.

# First run `npm install -g @playwright/mcp@latest` to install the MCP server.
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.ui import Console
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_ext.tools.mcp import McpWorkbench, StdioServerParams


async def main() -> None:
    model_client = OpenAIChatCompletionClient(model="gpt-4.1")
    server_params = StdioServerParams(
        command="npx",
        args=[
            "@playwright/mcp@latest",
            "--headless",
        ],
    )
    async with McpWorkbench(server_params) as mcp:
        agent = AssistantAgent(
            "web_browsing_assistant",
            model_client=model_client,
            workbench=mcp, # For multiple MCP servers, put them in a list.
            model_client_stream=True,
            max_tool_iterations=10,
        )
        await Console(agent.run_stream(task="Find out how many contributors for the microsoft/autogen repository"))


asyncio.run(main())

Warning: Only connect to trusted MCP servers as they may execute commands in your local environment or expose sensitive information.

Multi-Agent Orchestration

Set up a basic multi-agent orchestration using AgentTool to delegate tasks to specialized agents.

import asyncio

from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.tools import AgentTool
from autogen_agentchat.ui import Console
from autogen_ext.models.openai import OpenAIChatCompletionClient


async def main() -> None:
    model_client = OpenAIChatCompletionClient(model="gpt-4.1")

    math_agent = AssistantAgent(
        "math_expert",
        model_client=model_client,
        system_message="You are a math expert.",
        description="A math expert assistant.",
        model_client_stream=True,
    )
    math_agent_tool = AgentTool(math_agent, return_value_as_last_message=True)

    chemistry_agent = AssistantAgent(
        "chemistry_expert",
        model_client=model_client,
        system_message="You are a chemistry expert.",
        description="A chemistry expert assistant.",
        model_client_stream=True,
    )
    chemistry_agent_tool = AgentTool(chemistry_agent, return_value_as_last_message=True)

    agent = AssistantAgent(
        "assistant",
        system_message="You are a general assistant. Use expert tools when needed.",
        model_client=model_client,
        model_client_stream=True,
        tools=[math_agent_tool, chemistry_agent_tool],
        max_tool_iterations=10,
    )
    await Console(agent.run_stream(task="What is the integral of x^2?"))
    await Console(agent.run_stream(task="What is the molecular weight of water?"))


asyncio.run(main())

For more advanced multi-agent orchestrations and workflows, refer to the AgentChat documentation.

AutoGen Studio

Prototype and run multi-agent workflows without writing code using AutoGen Studio.

autogenstudio ui --port 8080 --appdir ./my-app

Caution: AutoGen Studio is intended for rapid prototyping and demonstration, not as a production-ready application. Developers should build their own applications with necessary security and authentication features.

Why Use AutoGen?

AutoGen provides a comprehensive ecosystem for creating AI agents, particularly for multi-agent workflows, encompassing a robust framework, essential developer tools, and example applications. Its layered and extensible design allows for flexible use, from high-level APIs to low-level components.

The framework is structured with:

  • Core API: Implements message passing, event-driven agents, and a flexible runtime, supporting both .NET and Python.
  • AgentChat API: Offers a simpler API for rapid prototyping, building on the Core API and supporting common multi-agent patterns.
  • Extensions API: Enables continuous expansion of framework capabilities through first and third-party extensions, including LLM clients and code execution.

Key developer tools include:

  • AutoGen Studio: A no-code GUI for building multi-agent applications.
  • AutoGen Bench: A benchmarking suite for evaluating agent performance.

AutoGen also fosters a thriving community with weekly office hours, talks, a Discord server, and GitHub Discussions for support and collaboration.

Links & Resources

Related repositories

Similar repositories that may be relevant next.

Awesome-Self-Improving-Agents: A Curated List for Agentic AI Self-Improvement

Awesome-Self-Improving-Agents: A Curated List for Agentic AI Self-Improvement

September 14, 2026

Awesome-Self-Improving-Agents is a comprehensive GitHub repository featuring a curated and continuously updated list of resources on self-improvement in foundation model-based agentic systems. It serves as a central hub for researchers and practitioners, offering papers, benchmarks, and various media. This resource is essential for anyone exploring the cutting edge of self-evolving AI agents.

agentic-aiself-improving-agentsllm
Agent Factory: Generate AI Agents with Natural Language Descriptions

Agent Factory: Generate AI Agents with Natural Language Descriptions

September 3, 2026

Agent Factory, developed by Mozilla-AI, is a powerful tool designed to generate AI agents and workflows. It allows users to describe tasks in natural language, which it then transforms into executable Python code for agentic workflows. Leveraging the Model Context Protocol (MCP) and the any-agent library, it simplifies the creation of complex AI solutions.

agentagentic-aicli
TrueForge: The Open-Source Agent Harness for LLM-Powered Agents

TrueForge: The Open-Source Agent Harness for LLM-Powered Agents

September 1, 2026

TrueForge is an open-source agent harness designed to transform large language models (LLMs) into fully functional agents. It provides the essential runtime layer, handling complex aspects like streaming, session persistence, tool servers, and sandboxing. Developers can leverage TrueForge to build and deploy robust, scalable AI agents with ease.

agentagentic-aiLLM
Google Skills: Agent Skills for Google Products and Technologies

Google Skills: Agent Skills for Google Products and Technologies

August 18, 2026

The `google/skills` repository offers a comprehensive collection of Agent Skills designed for Google products and technologies, including Google Cloud. It enables developers to easily integrate and leverage pre-built functionalities for various tasks, from infrastructure management to advanced AI/ML solutions. This resource streamlines the development of agentic applications within the Google ecosystem, providing a robust foundation for innovation.

googlegooglecloudskills

Source repository

Open the original repository on GitHub.

19 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️