Freigeben über


Microsoft.Agents.Builder.App Namespace

Classes

Name Description
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.

AgentAttribute
AgenticAuthorization
AgentInterfaceAttribute

Declares a transport protocol for interacting with the agent. This allows agents to expose the same functionality over multiple transport mechanisms.

AgentTransportProtocol

Defines constants for supported transport protocols for agent interfaces in Agents SDK Core.

AttachmentDownloader
ConversationUpdateEvents

Conversation update events.

FeedbackActionValue

The feedback loop data's action value.

FeedbackData

Data returned when the thumbsup or thumbsdown button is clicked and response is received.

InputFile

Represents an upload file

M365AttachmentDownloader

Downloads attachments from M365/Teams using the configured Token Provider (from IConnections).

M365AttachmentDownloaderOptions

The M365AttachmentDownloader options

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

Name Description
IInputFileDownloader

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

Enums

Name Description
RouteType

Delegates

Name Description
AgentApplicationTurnError
FeedbackLoopHandler

Function for feedback loop activities

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.