Microsoft.Agents.Builder Namespace

Classes

Name Description
ActivityExtensions
AgentExtension

Represents an opinionated base class for Agent Extensions.

AgentServiceCollectionExtensions

Dependency-injection registration methods for Agents SDK extensions.

AgentServiceRegistrationAttribute

Declares an Agents SDK extension service registrar.

ChannelAdapter

This is the base implementation of an IChannelAdapter.

ChannelServiceAdapterBase

An adapter that implements the Activity Protocol and can be hosted in different cloud environments both public and private.

OutboundHostValidator

Default IOutboundHostValidator implementation backed by OutboundHostValidatorOptions.

OutboundHostValidatorOptions

Options controlling the shared IOutboundHostValidator "allowed hosts" anti-SSRF control.

RestChannelServiceClientFactory

A factory to create REST clients to interact with a Channel Service.

TranscriptLoggerMiddleware

Middleware for logging incoming and outgoing activities to an ITranscriptStore.

TurnContext

Provides context for a turn of an Agent.

TurnContextExtensions
TurnContextStateCollection

Values persisted for the lifetime of the turn as part of the ITurnContext.

TurnContextWrapper

Provides a base wrapper around an ITurnContext instance.

TypedTurnContext<T>

A TurnContext with a strongly typed Activity property that wraps an untyped inner TurnContext.

Interfaces

Name Description
IAgent

Represents an Agent that can receive incoming Activities.

IAgentExtension

Contract for Agent Extensions.

IAgentServiceRegistrar

Defines dependency-injection registrations contributed by an Agents SDK extension assembly.

IChannelAdapter

Represents an Adapter that can connect an Agent to a service endpoint.

IChannelApiHandler

Handles requests received via the ChannelAPI endpoints exposed by a ChannelApi Controller.

IChannelServiceClientFactory

Handles creation of IConnectorClient and IUserTokenClient objects for use when handling incoming Activities.

IMiddleware

Represents middleware that can operate on incoming activities.

IMiddlewareSet
IOutboundHostValidator

Validates that an outbound URL targets an allowed host before the SDK makes a server-side, often token-bearing, request to it (e.g. Activity.ServiceUrl callbacks or attachment downloads). This is the SDK's shared anti-SSRF ("allowed hosts") control.

IStreamingResponse
ITurnContext

Provides context for a turn of an Agent.

ITurnContext<T>

Provides context for a turn of an Agent, where the context's Activity property is strongly typed.

Enums

Name Description
StreamingResponseResult

Delegates

Name Description
AgentCallbackHandler

The callback delegate for application code.

DeleteActivityHandler

A method that can participate in delete activity events for the current turn.

NextDelegate

Encapsulates an asynchronous method that calls the next IMiddleware.OnTurnAsync(ITurnContext, NextDelegate, CancellationToken) or IAgent.OnTurnAsync(ITurnContext, CancellationToken) method in the middleware pipeline.

SendActivitiesHandler

A method that can participate in send activity events for the current turn.

UpdateActivityHandler

A method that can participate in update activity events for the current turn.