HPD-Agent.Bots.Abstractions 0.9.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package HPD-Agent.Bots.Abstractions --version 0.9.6
                    
NuGet\Install-Package HPD-Agent.Bots.Abstractions -Version 0.9.6
                    
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="HPD-Agent.Bots.Abstractions" Version="0.9.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HPD-Agent.Bots.Abstractions" Version="0.9.6" />
                    
Directory.Packages.props
<PackageReference Include="HPD-Agent.Bots.Abstractions" />
                    
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 HPD-Agent.Bots.Abstractions --version 0.9.6
                    
#r "nuget: HPD-Agent.Bots.Abstractions, 0.9.6"
                    
#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 HPD-Agent.Bots.Abstractions@0.9.6
                    
#: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=HPD-Agent.Bots.Abstractions&version=0.9.6
                    
Install as a Cake Addin
#tool nuget:?package=HPD-Agent.Bots.Abstractions&version=0.9.6
                    
Install as a Cake Tool

HPD-Agent.Bots.Abstractions

Contracts, attributes, and source generation for connecting platform events to HPD agents.

Use this package with HPD-Agent.Bots.AspNetCore when building a custom adapter. The generated registry references the ASP.NET Core bridge even when another transport drives the adapter. For the built-in platforms, install the corresponding Slack, Discord, Telegram, WhatsApp, or Teams package.

dotnet add package HPD-Agent.Bots.Abstractions --version 1.0.0
dotnet add package HPD-Agent.Bots.AspNetCore --version 1.0.0

Custom adapter

using System.Text.Json.Serialization;
using HPD.Agent.Bots;

[HpdBot("contoso")]
[HpdStreaming(StreamingStrategy.BufferAndPost)]
public partial class ContosoBot
{
    [HpdBotEventHandler("message.created")]
    private Task<BotAdapterResponse> HandleMessageAsync(
        BotRequestContext context,
        ContosoMessage payload)
        => Task.FromResult(BotAdapterResponse.Text(payload.Text));
}

public sealed record ContosoMessage(string Text);

[JsonSerializable(typeof(ContosoMessage))]
internal partial class ContosoBotJsonContext : JsonSerializerContext;

public sealed class ContosoBotConfig
{
    public string? AgentId { get; set; }
}

The source generator emits AddContosoBot(...), MapContosoWebhook(...), neutral IBotAdapter dispatch, and registry registration. Handlers must be private or internal. Payloads must be records and must be included in a hand-written JSON context named {AdapterClass}JsonContext.

See the custom adapter guide and bots overview.

Product Compatible and additional computed target framework versions.
.NET 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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on HPD-Agent.Bots.Abstractions:

Package Downloads
HPD-Agent.Bots.AspNetCore

ASP.NET Core integration for HPD platform adapters. Provides webhook signature verification, endpoint mapping, and MapHPDBots() convenience extension.

HPD-Agent.Bots.Telegram

Telegram bot adapter for HPD agents. Connects HPD agents to Telegram via webhooks or long polling.

HPD-Agent.Bots.Discord

Discord adapter for HPD agents. Connects an HPD agent to Discord via HTTP Interactions and optional Gateway events.

HPD-Agent.Bots.WhatsApp

WhatsApp Business Cloud API bot adapter for HPD agents.

HPD-Agent.Bots.Teams

Microsoft Teams bot bridge for HPD agents using the Microsoft 365 Agents SDK.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.7 135 11/21/2026
0.9.6 161 11/16/2026
0.9.5 214 11/10/2026
0.9.2 220 11/2/2026
0.9.1 219 10/21/2026
0.9.0 202 10/20/2026