Microsoft.Agents.AI.OpenAI 1.4.0

Prefix Reserved
dotnet add package Microsoft.Agents.AI.OpenAI --version 1.4.0
                    
NuGet\Install-Package Microsoft.Agents.AI.OpenAI -Version 1.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Agents.AI.OpenAI" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Agents.AI.OpenAI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Agents.AI.OpenAI --version 1.4.0
                    
#r "nuget: Microsoft.Agents.AI.OpenAI, 1.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Agents.AI.OpenAI@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Agents.AI.OpenAI&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Agents.AI.OpenAI&version=1.4.0
                    
Install as a Cake Tool

About Microsoft Agent Framework

Microsoft Agent Framework is a comprehensive .NET library for building, orchestrating, and deploying AI agents and multi-agent workflows. The framework provides everything from simple chat agents to complex multi-agent systems with graph-based orchestration capabilities.

Key Features

  • Multi-Agent Orchestration: Coordinate multiple agents using sequential, concurrent, group chat, and handoff patterns
  • Graph-based Workflows: Connect agents and functions with streaming, checkpointing, and human-in-the-loop capabilities, with both imperative or declarative workflow support
  • Multiple Provider Support: Seamlessly integrate with various LLM providers with more being added continuously
  • Extensible Middleware: Flexible request/response processing with custom pipelines and exception handling
  • Built-in Observability: OpenTelemetry integration for distributed tracing, monitoring, and debugging
  • Cross-Platform: Compatible with .NET 8.0, .NET Standard 2.0, and .NET Framework for broad deployment options

Whether you're building simple AI assistants or complex multi-agent systems, Microsoft Agent Framework provides the tools and abstractions needed to create robust, scalable AI applications in .NET.

Getting Started ⚡

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (20)

Showing the top 5 NuGet packages that depend on Microsoft.Agents.AI.OpenAI:

Package Downloads
AgentFrameworkToolkit.OpenAI

An opinionated C# Toolkit targeting OpenAI for Microsoft Agent Framework that makes life eaisier

AgentFrameworkToolkit.AzureOpenAI

An opinionated C# Toolkit targeting Azure OpenAI for Microsoft Agent Framework that makes life eaisier

Soenneker.Maf.Pool.OpenAI

Provides OpenAI-specific registration extensions for MafPoolManager, enabling integration via Microsoft Agent Framework.

Soenneker.Maf.Pool.Mistral

Provides Mistral-specific registration extensions for MafPoolManager, enabling integration with local LLMs via Microsoft Agent Framework.

Soenneker.Maf.Pool.OpenAI.Azure

Provides Azure OpenAI-specific registration extensions for MafPoolManager, enabling integration via Microsoft Agent Framework.

GitHub repositories (13)

Showing the top 13 popular GitHub repositories that depend on Microsoft.Agents.AI.OpenAI:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
AIDotNet/OpenDeepWiki
OpenDeepWiki is the open-source version of the DeepWiki project, aiming to provide a powerful knowledge management and collaboration platform. The project is mainly developed using C# and TypeScript, supporting modular design, and is easy to expand and customize.
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
neozhu/CleanArchitectureWithBlazorServer
This repository is designed to create an enterprise Blazor Server application that follows the principles of Clean Architecture and implements Blazor Clean Architecture best practices for scalability, maintainability, and testability.
junkai-li/NetCoreKevin
基于.NET搭建-AI知识库智能体-现代化Saas企业级前后端分离架构:前端Vue3、IDS4单点登录、多缓存、自动任务、分布式、一库多租户、日志、授权和鉴权、CAP集成事件、SignalR、领域事件、MCP协议服务、IOC模块化注入、自动任务、多短信集成、AI、AgentFramework智能体、AISemanticKernel集成、RAG检索增强、本地离线AI模型调用、API多版本、单元测试、RabbitMQ、Skills技能使用、AI知识库、AI联网搜索
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
rwjdk/MicrosoftAgentFrameworkSamples
Samples demonstrating the Microsoft Agent Framework in C#
lindexi/lindexi_gd
博客用到的代码
jihadkhawaja/Egroo
A refined social platform for humans and AI agents. Private by default. Yours by design.
Azure-Samples/eShopLite
eShopLite is a set of reference .NET applications implementing an eCommerce site with features like Semantic Search, MCP, Reasoning models and more.
bingbing-gui/dotnet-agent-playbook
一个面向 .NET + AI Agent 开发的实践型仓库,涵盖 Web、云原生与微服务场景,聚焦智能应用的工程化落地。
Azure-Samples/interview-coach-agent-framework
Interview coach application using Microsoft Agent Framework | https://aka.ms/agentframework/interviewcoach
Version Downloads Last Updated
1.4.0 449 5/5/2026
1.3.0 27,245 4/24/2026
1.2.0 7,482 4/21/2026
1.1.0 55,651 4/10/2026
1.0.0 56,531 4/2/2026
1.0.0-rc5 12,663 3/31/2026
1.0.0-rc4 106,211 3/11/2026
1.0.0-rc3 31,457 3/4/2026
1.0.0-rc2 39,863 2/25/2026
1.0.0-rc1 37,695 2/20/2026
1.0.0-preview.260212.1 42,302 2/12/2026
1.0.0-preview.260209.1 8,578 2/10/2026
1.0.0-preview.260205.1 13,082 2/6/2026
1.0.0-preview.260128.1 23,280 1/28/2026
1.0.0-preview.260127.1 5,421 1/27/2026
1.0.0-preview.260121.1 30,330 1/21/2026
1.0.0-preview.260108.1 84,093 1/9/2026
1.0.0-preview.251219.1 77,026 12/19/2025
1.0.0-preview.251204.1 75,864 12/5/2025
0.0.1-preview.260417.2 53 4/17/2026
Loading failed