---
title: "Microsoft Agent Framework: tính năng, phiên bản và hướng dẫn bắt đầu nhanh · DotsAgent"
description: "Microsoft Agent Framework của Microsoft: giấy phép, phiên bản mới nhất, hỗ trợ MCP, lượt chạy bền vững, phê duyệt của con người, tracing và evals, kèm hướng dẫn bắt đầu nhanh để sao chép."
url: https://dotsagent.io/vi/frameworks/microsoft-agent-framework
---

Framework · Microsoft

# Tổng quan về Microsoft Agent Framework

Framework agent của Microsoft dành cho Python và .NET, do các nhóm Semantic Kernel và AutoGen xây dựng, chính thức phát hành từ April 2026. Framework này kết hợp agent có kiểu dữ liệu rõ ràng với quy trình làm việc dạng đồ thị hỗ trợ checkpoint, tiếp tục chạy và chờ người dùng; SDK Go hiện ở giai đoạn xem trước công khai.

**Phù hợp nhất với:**  Các nhóm Python và .NET dùng Azure, bao gồm những nhóm đang chuyển đổi từ AutoGen hoặc Semantic Kernel.

## Thông tin chính

- **Đơn vị duy trì**: Microsoft
- **Ngôn ngữ**: Python, C#, .NET, Go
- **Giấy phép**: MIT
- **Phiên bản mới nhất**: `Python 1.19.0 / .NET 1.23.0` · 1 tháng 10, 2026
- **Repository**: [microsoft/agent-framework](https://github.com/microsoft/agent-framework) · 13.891 sao
- **Tùy chọn chạy trên nền tảng lưu trữ**: [Foundry Hosted Agents (Microsoft Foundry)](https://github.com/microsoft/agent-framework)Một dịch vụ Microsoft Foundry mới; Microsoft cho biết việc triển khai chỉ cần thêm khoảng hai dòng mã.

## Bắt đầu nhanh

Cài package, thiết lập thông tin xác thực, rồi chạy agent đơn giản nhất theo tài liệu chính thức. ID model sử dụng trong tài liệu có thể chưa được bật cho tài khoản của bạn.

### Python

`Cài đặt`

```
pip install agent-framework
```

Cần Azure CLI login (AzureCliCredential) + Foundry project endpoint

`Python`

```
from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential

agent = Agent(
    client=FoundryChatClient(
        project_endpoint="https://your-foundry-service.services.ai.azure.com/api/projects/your-foundry-project",
        model="gpt-5.4-mini",
        credential=AzureCliCredential(),
    ),
    name="HelloAgent",
    instructions="You are a friendly assistant. Keep your answers brief.",
)

# Non-streaming: get the complete response at once
result = await agent.run("What is the largest city in France?")
print(f"Agent: {result}")
```

[Nguồn hướng dẫn bắt đầu nhanh](https://learn.microsoft.com/en-us/agent-framework/overview/)

### C#

`Cài đặt`

```
dotnet add package Microsoft.Agents.AI.Foundry --prerelease
```

Cần Azure CLI login

`C#`

```
using System;
using Azure.AI.Projects;
using Azure.Identity;
using Microsoft.Agents.AI;

AIAgent agent = new AIProjectClient(
        new Uri("https://your-foundry-service.services.ai.azure.com/api/projects/your-foundry-project"),
        new AzureCliCredential())
    .AsAIAgent(
        model: "gpt-5.4-mini",
        instructions: "You are a friendly assistant. Keep your answers brief.");

Console.WriteLine(await agent.RunAsync("What is the largest city in France?"));
```

[Nguồn hướng dẫn bắt đầu nhanh](https://learn.microsoft.com/en-us/agent-framework/overview/)

## Tính năng

| Mọi model | — | Foundry, Azure OpenAI, OpenAI, Anthropic, Ollama và nhiều nền tảng khác |
| --- | --- | --- |
| MCP client | — | — |
| MCP server | — | — |
| Đa agent | — | Quy trình tuần tự, đồng thời, bàn giao và theo nhóm |
| Lượt chạy bền vững | — | Checkpointing, cùng Durable Extension trên Azure Functions hoặc môi trường tự host |
| Phê duyệt của con người | — | Agent bền vững có thể chờ người dùng nhập liệu mà không tiêu tốn tài nguyên tính toán |
| Tracing | — | Tích hợp OpenTelemetry; DevUI hỗ trợ gỡ lỗi cục bộ |
| Evals | — | Các tích hợp đánh giá được thông báo là bản xem trước, không thuộc phần cốt lõi của 1.0 |

## Các thay đổi gần đây

- April 2026: phiên bản 1.0 chính thức phát hành, sau bản phát hành ứng viên vào February.
- AutoGen chuyển sang chế độ bảo trì; Semantic Kernel v1 sẽ nhận các bản sửa lỗi quan trọng trong ít nhất một năm sau khi MAF chính thức phát hành.
- Bổ sung Harness Agent, agent khai báo bằng YAML, Agent Skills và bản xem trước SDK Go.

## Các lựa chọn thay thế cùng ngôn ngữ

- [OpenAI Agents SDK](https://dotsagent.io/vi/frameworks/openai-agents-python)

- [Claude Agent SDK](https://dotsagent.io/vi/frameworks/claude-agent-sdk)

- [Google ADK](https://dotsagent.io/vi/frameworks/google-adk)

- [LangGraph](https://dotsagent.io/vi/frameworks/langgraph)

- [CrewAI](https://dotsagent.io/vi/frameworks/crewai)

- [LlamaIndex](https://dotsagent.io/vi/frameworks/llamaindex)

## Nguồn

1. [learn.microsoft.com](https://learn.microsoft.com/en-us/agent-framework/overview/)/en-us/agent-framework/overview/
2. [github.com](https://github.com/microsoft/agent-framework)/microsoft/agent-framework
3. [devblogs.microsoft.com](https://devblogs.microsoft.com/agent-framework/microsoft-agent-framework-version-1-0/)/agent-framework/microsoft-agent-framework-version-1-0/
4. [devblogs.microsoft.com](https://devblogs.microsoft.com/agent-framework/semantic-kernel-and-microsoft-agent-framework/)/agent-framework/semantic-kernel-and-microsoft-agent-framework/
5. [learn.microsoft.com](https://learn.microsoft.com/en-us/agent-framework/integrations/durable-extension)/en-us/agent-framework/integrations/durable-extension
6. [github.com](https://github.com/microsoft/autogen)/microsoft/autogen
7. [pypi.org](https://pypi.org/pypi/agent-framework/json)/pypi/agent-framework/json
8. [api.github.com](https://api.github.com/repos/microsoft/agent-framework)/repos/microsoft/agent-framework

Tài liệu tham khảo độc lập dành cho những người xây dựng AI agent. Không liên kết với bất kỳ nhà cung cấp nào được nêu ở đây.

© 2026 DotsAgent · Dữ liệu được kiểm tra ngày 1 tháng 10, 2026
