Share via


Microsoft.Agents.Builder.App Namespace

Classes

AgentApplication

Application class for routing and processing incoming requests.

AgentApplicationBuilder

A builder class for simplifying the creation of an AgentApplication instance.

AgentApplicationOptions

Options for the AgentApplication class. AgentApplicationOptions can be constructed via IConfiguration values or programmatically.

AttachmentDownloader
ConversationUpdateEvents

Conversation update events.

InputFile

Represents an upload file

MultipleRouteSelector

Combination of String, Regex, and RouteSelectorAsync selectors.

RouteAttribute

Adds an AgentApplication Routes

RouteType:

Activity,       // { Type | RegEx | Selector}, Rank, AutoHandlers
Message,        // { Text | RegEx | Selector}, Rank, AutoHandlers
Event,          // { EventName | RegEx | Selector}, Rank, AutoHandlers
Conversation,   // { EventName | Selector}, Rank, AutoHandlers
HandOff,        // Selector, Rank, AutoHandlers
ReactionAdded,  // Rank, AutoHandlers
ReactionRemoved // Rank, AutoHandlers
RouteRank

Interfaces

IInputFileDownloader

A plugin responsible for downloading files relative to the current user's input.

Enums

RouteType

Delegates

AgentApplicationTurnError
HandoffHandler

Function for handling handoff activities.

RouteHandler

The common route handler. Function for handling an incoming request.

RouteSelector

Function for selecting whether a route handler should be triggered.

TurnEventHandler

Turn event handler to do something before or after a turn is run. Returning false from beforeTurn lets you prevent the turn from running and returning false from afterTurn lets you prevent the Agents state from being saved.

Returning false from beforeTurn does result in the Agents state being saved which lets you track the reason why the turn was not processed. It also means you can use beforeTurn as a way to call into the dialog system. For example, you could use the OAuthPrompt to sign the user in before allowing the AI system to run.

TurnStateFactory

TurnState for an Agent is created at the beginning of a Turn by invoking the specified factory delegate.