# autogen | Microsoft | Knowledge Base | Instagit

A programming framework for agentic AI

GitHub Stars: 55.3k

Repository: https://github.com/microsoft/autogen

---

## Articles

### [Setting Up AutoGen Bench for Benchmarking Agent Performance: A Complete Guide](/microsoft/autogen/setting-up-autogen-bench-for-benchmarking-agent-performance)

Benchmark agent performance with AutoGen Bench. This guide shows you how to set up and run this official Microsoft AutoGen tool for evaluating agent capabilities efficiently and effectively.

- Tags: how-to-guide
- Published: 2026-03-07

### [Building Declarative Agent Components with Configurable Patterns in AutoGen](/microsoft/autogen/building-declarative-agent-components-with-configurable-patterns)

Learn to build declarative agent components with configurable patterns in AutoGen. Define agents, models, and teams using JSON or YAML for easy version control and re-instantiation.

- Tags: tutorial
- Published: 2026-03-07

### [How to Implement Pause and Resume in Autogen Group Chats](/microsoft/autogen/implementing-pause-and-resume-functionality-in-group-chats)

Easily add pause and resume to Autogen group chats by implementing on_pause and on_resume methods. Control group chat execution with team.pause() and team.resume() for seamless agent communication and workflow management.

- Tags: how-to-guide
- Published: 2026-03-07

### [Configuring Model Clients for Azure OpenAI and OpenAI Compatible APIs in Autogen](/microsoft/autogen/configuring-model-clients-for-azure-openai-and-openai-compatible-apis)

Learn to configure Autogen model clients for Azure OpenAI and OpenAI compatible APIs. Streamline your AI agent development with `OpenAIChatCompletionClient` and `AzureOpenAIChatCompletionClient`.

- Tags: how-to-guide
- Published: 2026-03-07

### [Building Custom Team Tools with TeamTool for Complex Workflows in AutoGen](/microsoft/autogen/building-custom-team-tools-with-teamtool-for-complex-workflows)

Build custom team tools with TeamTool for complex workflows in AutoGen. Orchestrate multi-agent teams with state persistence and streaming via a single function call.

- Tags: how-to-guide
- Published: 2026-03-07

### [Implementing Streaming Message Handling with Model Client Streaming in AutoGen](/microsoft/autogen/implementing-streaming-message-handling-with-model-client-streaming)

Implement streaming message handling with AutoGen's model client streaming for real-time text. Activate this feature by setting model_client_stream=True on your AssistantAgent for incremental updates.

- Tags: how-to-guide
- Published: 2026-03-07

### [Migrating from AutoGen v0.2 to the New AgentChat API: A Complete Guide](/microsoft/autogen/migrating-from-autogen-v0-2-to-the-new-agentchat-api)

Upgrade your AutoGen v0.2 agents to the new AgentChat API. This guide covers the async, component-based migration, new patterns, and key changes to help you transition.

- Tags: migration-guide
- Published: 2026-03-07

### [Building Nested Group Chat Hierarchies with DiGraphGroupChat in Autogen](/microsoft/autogen/building-nested-group-chat-hierarchies-with-digraphgroupchat)

Discover how Microsoft Autogen builds nested group chat hierarchies using DiGraphGroupChat. Model conversations as directed graphs for advanced agent communication and conditional message routing.

- Tags: how-to-guide
- Published: 2026-03-07

### [Implementing Approval Workflows with CodeExecutorAgent Approval Callbacks in AutoGen](/microsoft/autogen/implementing-approval-workflows-with-codeexecutoragent-approval-callbacks)

Implement approval workflows in AutoGen using CodeExecutorAgent approval callbacks. Securely control code execution with human-in-the-loop safety gates.

- Tags: how-to-guide
- Published: 2026-03-07

### [Debugging Message Passing Issues in Event-Driven Agent Architectures: An AutoGen Deep Dive](/microsoft/autogen/debugging-message-passing-issues-in-event-driven-agent-architectures)

Debug message passing issues in AutoGen event-driven agent architectures. Learn to trace agent communication from send_message to on_message and resolve runtime registration, token, and subscription problems.

- Tags: deep-dive
- Published: 2026-03-07

### [Implementing Custom Group Chat Selectors for Agent Selection in AutoGen](/microsoft/autogen/implementing-custom-group-chat-selectors-for-agent-selection)

Implement custom group chat selectors in AutoGen by overriding LLM speaker selection with selector_func or candidate_func for deterministic agent turn taking

- Tags: how-to-guide
- Published: 2026-03-07

### [Configuring Termination Conditions for Group Chat Sessions in AutoGen](/microsoft/autogen/configuring-termination-conditions-for-group-chat-sessions)

Learn to configure termination conditions for AutoGen group chat sessions. Use built-in strategies like message limits, text mentions, or timeouts to control session endings.

- Tags: how-to-guide
- Published: 2026-03-07

### [Integrating MCP Servers with McpWorkbench for External Tool Access: A Complete Technical Guide](/microsoft/autogen/integrating-mcp-servers-with-mcpworkbench-for-external-tool-access)

Integrate MCP servers with McpWorkbench using AutoGen Studio for seamless external tool access. Explore the WebSocket protocol bridge for real-time communication and transport options.

- Tags: how-to-guide
- Published: 2026-03-07

### [Building Cross-Language .NET and Python Agent Applications with AutoGen](/microsoft/autogen/building-cross-language-net-and-python-agent-applications)

Build cross-language .NET and Python agent apps with AutoGen. Leverage gRPC and protobuf for seamless communication between your agents for powerful AI solutions.

- Tags: how-to-guide
- Published: 2026-03-07

### [Running AutoGen Agents with Distributed Runtime Across Multiple Machines: A Complete Guide](/microsoft/autogen/running-autogen-agents-with-distributed-runtime-across-multiple-machines)

Learn to run AutoGen agents with distributed runtime across multiple machines. Leverage gRPC for seamless multi-machine deployment enabling scalable AI agent applications.

- Tags: how-to-guide
- Published: 2026-03-07

### [Handling Handoffs Between Agents in Swarm Group Chat: A Complete Guide](/microsoft/autogen/handling-handoffs-between-agents-in-swarm-group-chat)

Master agent handoffs in AutoGen Swarm group chat. Learn how `HandoffMessage` and `SwarmGroupChatManager` enable seamless control transfers. Get the complete guide.

- Tags: how-to-guide
- Published: 2026-03-07

### [Implementing Message Filtering with MessageFilterAgent and PerSourceFilter in AutoGen](/microsoft/autogen/implementing-message-filtering-with-messagefilteragent-and-persourcefilter)

Master AutoGen message filtering with MessageFilterAgent and PerSourceFilter. Control message access to inner agents, ensuring efficient communication and focused context. Learn how to implement advanced filtering for your AI a...

- Tags: how-to-guide
- Published: 2026-03-07

### [Converting Agents to Tools Using AgentTool for Agent Composition](/microsoft/autogen/converting-agents-to-tools-using-agenttool-for-agent-composition)

Learn how to convert AutoGen agents into tools using AgentTool. Enable hierarchical multi-agent orchestration and delegate tasks effectively through standard function calling.

- Tags: how-to-guide
- Published: 2026-03-07

### [Setting up MagenticOneGroupChat for Complex Task Orchestration in AutoGen](/microsoft/autogen/setting-up-magenticonegroupchat-for-complex-task-orchestration)

Master MagenticOneGroupChat in AutoGen for complex task orchestration. Learn how this ledger-driven team solves tough problems autonomously using outer and inner loops.

- Tags: how-to-guide
- Published: 2026-03-07

### [Implementing the Society of Mind Agent Pattern in Multi-Agent Systems with AutoGen](/microsoft/autogen/implementing-the-society-of-mind-agent-pattern-in-multi-agent-systems)

Implement the Society of Mind agent pattern in multi-agent systems using AutoGen. Learn how SocietyOfMindAgent wraps teams and synthesizes discussions for better collaboration.

- Tags: how-to-guide
- Published: 2026-03-07

### [Configuring CodeExecutorAgent for Secure Code Execution in AutoGen](/microsoft/autogen/configuring-codeexecutoragent-for-secure-code-execution-in-ai-agents)

Securely run AI code with AutoGen's CodeExecutorAgent. Learn how to use Docker and custom approval functions for safe code execution and agent security.

- Tags: how-to-guide
- Published: 2026-03-07

### [Building Graph-Based Agent Workflows with DiGraphBuilder and GraphFlow in AutoGen](/microsoft/autogen/building-graph-based-agent-workflows-with-digraphbuilder-and-graphflow)

Build powerful graph-based agent workflows using AutoGen's DiGraphBuilder and GraphFlow. Implement complex patterns like fan-outs, branching, and loops with ease.

- Tags: tutorial
- Published: 2026-03-07

### [How to Implement Custom Agent Routing in SelectorGroupChat: Complete Guide](/microsoft/autogen/how-to-implement-custom-agent-routing-in-selectorgroupchat)

Master custom agent routing in SelectorGroupChat with AutoGen. Override LLM speaker selection using a Python callable for advanced control. Learn how to provide conversation history and return agent names.

- Tags: how-to-guide
- Published: 2026-03-07

