Skip to main content
net8.0

Library for creating agents using Microsoft Agent SDK

Published
Jan 1, 1900
128y ago
Total Downloads
0
0

Install

dotnet add package Microsoft.Agents.Protocols --version 0.1.26
ProductVersions
.NET
net8.0

README

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

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.This version is unlisted. Prefer a listed release unless you deliberately need this exact version for reproducibility.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.