Table of Contents

Namespace Microsoft.Agents.Builder.App

Classes

AgentApplication

Application class for routing and processing incoming requests.

AgentApplicationOptions

Options for the AgentApplication class.

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
Message,        // { Text | RegEx | Selector}, Rank
Event,          // { EventName | RegEx | Selector}, Rank
Conversation,   // { EventName | Selector}, Rank
HandOff,        // Selector, Rank
ReactionAdded,  // Rank
ReactionRemoved // Rank
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.