---
title: "Microsoft Agent Framework: ฟีเจอร์ เวอร์ชัน และ Quickstart · DotsAgent"
description: "Microsoft Agent Framework โดย Microsoft: ไลเซนส์ เวอร์ชันล่าสุด รองรับ MCP, การรันงานแบบต่อเนื่อง การอนุมัติโดยมนุษย์ การ tracing และ evals พร้อม Quickstart ที่คัดลอกไปใช้ได้"
url: https://dotsagent.io/th/frameworks/microsoft-agent-framework
---

เฟรมเวิร์ก · Microsoft

# ภาพรวม Microsoft Agent Framework

เฟรมเวิร์กสำหรับ agent ของ Microsoft ใน Python และ .NET พัฒนาโดยทีม Semantic Kernel และ AutoGen และเปิดให้ใช้งานทั่วไปตั้งแต่ April 2026 รองรับ agent แบบระบุชนิดและเวิร์กโฟลว์แบบกราฟที่บันทึก checkpoint ทำงานต่อ และรอรับข้อมูลจากผู้ใช้ได้ นอกจากนี้ Go SDK ยังอยู่ในช่วง public preview

**เหมาะสำหรับ:**  ทีม Python และ .NET ที่ใช้ Azure รวมถึงทีมที่กำลังย้ายออกจาก AutoGen หรือ Semantic Kernel

## ข้อมูลสำคัญ

- **ผู้ดูแล**: Microsoft
- **ภาษา**: Python, C#, .NET, Go
- **ไลเซนส์**: MIT
- **เวอร์ชันล่าสุด**: `Python 1.19.0 / .NET 1.23.0` · 1 ตุลาคม 2569
- **Repository**: [microsoft/agent-framework](https://github.com/microsoft/agent-framework) · 13,891 ดาว
- **ตัวเลือกแบบโฮสต์**: [Foundry Hosted Agents (Microsoft Foundry)](https://github.com/microsoft/agent-framework)บริการใหม่บน Microsoft Foundry; Microsoft ระบุว่าใช้โค้ดเพิ่มเพียงประมาณสองบรรทัดในการ deploy

## Quickstart

ติดตั้งแพ็กเกจ ตั้งค่าข้อมูลรับรอง แล้วเรียกใช้ agent ตัวอย่างที่เล็กที่สุดจากเอกสารทางการ Model ID เป็นค่าที่เอกสารใช้ และอาจยังไม่ได้เปิดใช้งานในบัญชีของคุณ

### Python

`ติดตั้ง`

```
pip install agent-framework
```

ต้องใช้ 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}")
```

[แหล่งข้อมูล Quickstart](https://learn.microsoft.com/en-us/agent-framework/overview/)

### C#

`ติดตั้ง`

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

ต้องใช้ 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?"));
```

[แหล่งข้อมูล Quickstart](https://learn.microsoft.com/en-us/agent-framework/overview/)

## ฟีเจอร์

| ใช้ได้กับทุกโมเดล | — | รองรับ Foundry, Azure OpenAI, OpenAI, Anthropic, Ollama และอื่น ๆ |
| --- | --- | --- |
| MCP client | — | — |
| MCP server | — | — |
| หลาย agent | — | เวิร์กโฟลว์แบบลำดับ พร้อมกัน ส่งต่องาน และกลุ่ม |
| การทำงานต่อเนื่องแบบทนทาน | — | รองรับ checkpoint และ Durable Extension บน Azure Functions หรือโฮสต์เอง |
| การอนุมัติโดยมนุษย์ | — | agent แบบ durable รอข้อมูลจากผู้ใช้ได้โดยไม่ใช้ทรัพยากรประมวลผล |
| Tracing | — | มี OpenTelemetry ในตัว; ใช้ DevUI สำหรับดีบักในเครื่อง |
| Evals | — | มีรายงานว่าการเชื่อมต่อระบบประเมินยังเป็น preview และไม่รวมอยู่ในฟีเจอร์หลักของเวอร์ชัน 1.0 |

## การเปลี่ยนแปลงล่าสุด

- April 2026: เวอร์ชัน 1.0 เปิดให้ใช้งานทั่วไป หลังออก release candidate ใน February
- AutoGen เข้าสู่โหมดบำรุงรักษา ส่วน Semantic Kernel v1 จะได้รับการแก้ไขปัญหาร้ายแรงอย่างน้อยหนึ่งปีหลัง MAF เปิดให้ใช้งานทั่วไป
- เพิ่ม Harness Agent, agent แบบ declarative YAML, Agent Skills และ Go SDK รุ่น preview

## ทางเลือกในภาษาเดียวกัน

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

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

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

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

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

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

## แหล่งข้อมูล

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

แหล่งอ้างอิงอิสระสำหรับผู้สร้าง AI agent ไม่มีส่วนเกี่ยวข้องกับผู้ให้บริการที่กล่าวถึง

© 2026 DotsAgent · ตรวจสอบข้อมูลเมื่อ 1 ตุลาคม 2569
