Microsoft.Agents.Protocols
0.1.26
Prefix Reserved
dotnet add package Microsoft.Agents.Protocols --version 0.1.26
NuGet\Install-Package Microsoft.Agents.Protocols -Version 0.1.26
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.Protocols" Version="0.1.26" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Agents.Protocols --version 0.1.26
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.Agents.Protocols, 0.1.26"
#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.
// Install Microsoft.Agents.Protocols as a Cake Addin #addin nuget:?package=Microsoft.Agents.Protocols&version=0.1.26 // Install Microsoft.Agents.Protocols as a Cake Tool #tool nuget:?package=Microsoft.Agents.Protocols&version=0.1.26
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Microsoft.Agents.Protocols
About
Contains the implementation for the Bot Framework Activity Protocol
How to use with WebAPI
public class EchoBot : ActivityHandler
{
protected override Task OnMessageActivityAsync(ITurnContext<IMessageActivity> turnContext, CancellationToken cancellationToken)
=> turnContext.SendActivityAsync(turnContext.Activity.Text, cancellationToken)
}
[Authorize]
[ApiController]
[Route("api/messages")]
public class BotController(IBotHttpAdapter adapter, IBot bot) : ControllerBase
{
[HttpPost]
public Task PostAsync(CancellationToken cancellationToken)
=> adapter.ProcessAsync(Request, Response, bot, cancellationToken);
}
Main Types
The main types provided by this library are:
Microsoft.Agents.Protocols.Primitives.Activity
Microsoft.Agents.Protocols.Adapter.ActivityHandler
Microsoft.Agents.Protocols.Adapter.TurnContext
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Azure.Core (>= 1.43.0)
- Microsoft.Agents.Authentication (>= 0.1.26)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- System.Text.Json (>= 8.0.5)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Microsoft.Agents.Protocols:
Package | Downloads |
---|---|
Microsoft.Agents.Hosting.AspNetCore
Library for creating agents using Microsoft Agent SDK |
|
Microsoft.Agents.Client
Library for creating authentication tokens for agents using Microsoft Agent SDK |
|
Microsoft.Agents.Memory
Library for creating agents using Microsoft Agent SDK |
|
Microsoft.Agents.BotBuilder
Library for creating authentication tokens for agents using Microsoft Agent SDK |
|
Microsoft.Agents.CopilotStudio.Client
Library for creating authentication tokens for agents using Microsoft Agent SDK |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.26 | 74 | 11/18/2024 |