Microsoft.Agents.Extensions.Teams.AI
1.1.125-beta
Prefix Reserved
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
This is a prerelease version of Microsoft.Agents.Extensions.Teams.AI.
dotnet add package Microsoft.Agents.Extensions.Teams.AI --version 1.1.125-beta
NuGet\Install-Package Microsoft.Agents.Extensions.Teams.AI -Version 1.1.125-beta
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.Extensions.Teams.AI" Version="1.1.125-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Agents.Extensions.Teams.AI" Version="1.1.125-beta" />
<PackageReference Include="Microsoft.Agents.Extensions.Teams.AI" />
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.Extensions.Teams.AI --version 1.1.125-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.Agents.Extensions.Teams.AI, 1.1.125-beta"
#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.
#addin nuget:?package=Microsoft.Agents.Extensions.Teams.AI&version=1.1.125-beta&prerelease
#tool nuget:?package=Microsoft.Agents.Extensions.Teams.AI&version=1.1.125-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Microsoft.Agents.Extensions.Teams
Purpose
This is a Agents SDK based implementation of the former Teams AI library. Issues, releases, and source code available at https://github.com/microsoft/teams-agents
Teams AI Agent APIs
Below is a detailed overview of the main APIs and their purposes:
Microsoft.Agents.Extensions.Teams.AI
This is the main library defined here. We leverage existing Agent SDK libraries to handle non-Teams and non-AI tasks.
- TeamsApplication: Represents a Teams application that can be used to build and deploy intelligent agents within Microsoft Teams.
- TeamsApplicationBuilder: A builder class for simplifying the creation of an Application instance.
- AI System: Responsible for moderating input and output, generating plans, and executing them. It includes components like the moderator, planner, and actions.
- ActionPlanner: A powerful planner that uses a Large Language Model (LLM) to generate plans. It can trigger parameterized actions and send text-based responses to the user.
- PromptManager: Manages prompt functions, data sources, and templates, allowing for the addition and retrieval of these components.
- GPTTokenizer: Implements a GPT Tokenizer for encoding and decoding text using the "gpt-4" model.
- JsonResponseValidator: Parses any JSON returned by the model and optionally verifies it against a JSON schema.
Microsoft.Agents.Hosting.AspNetCore
- AddAgentAspNetAuthentication: Configures authentication services based on provided settings in the configuration file, facilitating authentication and authorization for Microsoft Teams agents.
Microsoft.Agents.Authentication.Msal
- Authentication: Provides authentication capabilities using MSAL (Microsoft Authentication Library) for secure access to Microsoft services.
Microsoft.KernelMemory
- Kernel Memory: A library that allows indexing and querying any data using LLM and natural language, tracking sources, and showing citations.
Azure and OpenAI Integration
- Azure.AI.OpenAI: Provides integration with Azure OpenAI services for natural language processing.
- Azure.AI.ContentSafety: Ensures content safety by moderating input and output using Azure's Content Safety API.
Configuration and Deployment
- teamsapp.yml: Automates the creation of a Teams app registration, Azure AD app registration for a bot, and the deployment of infrastructure using ARM templates.
- appsettings.json: Contains configuration settings for token validation, connections, and logging.
Getting Started
We recommend getting started with the Teams Chef sample, available at
- Teams Chef Bot Sample - An AI-powered agent designed to assist developers in building Microsoft Teams apps.
Product | Versions 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 was computed. 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 was computed. 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 was computed. 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.
-
.NETStandard 2.0
- AdaptiveCards (>= 3.1.0)
- Azure.AI.ContentSafety (>= 1.0.0)
- Azure.AI.OpenAI (>= 2.1.0)
- Google.Protobuf (>= 3.27.3)
- JsonSchema.Net (>= 6.1.2)
- Microsoft.Agents.Builder (>= 1.1.125-beta)
- Microsoft.Agents.Extensions.Teams (>= 1.1.125-beta)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.4)
- Microsoft.Identity.Client (>= 4.70.2)
- Microsoft.ML.Tokenizers.Data.Cl100kBase (>= 1.0.1)
- Microsoft.ML.Tokenizers.Data.O200kBase (>= 1.0.1)
- Newtonsoft.Json (>= 13.0.3)
- OpenAI (>= 2.1.0)
- System.Text.Json (>= 9.0.2)
-
net8.0
- AdaptiveCards (>= 3.1.0)
- Azure.AI.ContentSafety (>= 1.0.0)
- Azure.AI.OpenAI (>= 2.1.0)
- Google.Protobuf (>= 3.27.3)
- JsonSchema.Net (>= 6.1.2)
- Microsoft.Agents.Builder (>= 1.1.125-beta)
- Microsoft.Agents.Extensions.Teams (>= 1.1.125-beta)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.4)
- Microsoft.Identity.Client (>= 4.70.2)
- Microsoft.ML.Tokenizers.Data.Cl100kBase (>= 1.0.1)
- Microsoft.ML.Tokenizers.Data.O200kBase (>= 1.0.1)
- Newtonsoft.Json (>= 13.0.3)
- OpenAI (>= 2.1.0)
- System.Text.Json (>= 9.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.125-beta | 202 | 6/13/2025 |
1.1.113-beta | 255 | 6/11/2025 |
1.1.110-beta | 85 | 6/6/2025 |
1.1.109-beta | 114 | 6/4/2025 |
1.1.107-beta | 45 | 5/31/2025 |
1.1.103-beta | 123 | 5/29/2025 |
1.1.100-beta | 117 | 5/28/2025 |