Freigeben über


AgentApplicationBuilder Class

Definition

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

public class AgentApplicationBuilder
type AgentApplicationBuilder = class
Public Class AgentApplicationBuilder
Inheritance
AgentApplicationBuilder

Constructors

Name Description
AgentApplicationBuilder(IStorage)

Creates the builder and uses IStorage to create the default TurnStateFactory to use for managing the Agent's turn state.

AgentApplicationBuilder(TurnStateFactory)

Creates the builder and uses the passed TurnStateFactory to use for managing the Agent's turn state.

Properties

Name Description
Options

The application's configured options.

Methods

Name Description
Build()

Builds and returns a new Application instance.

SetNormalizeMentions(Boolean)

Configures the normalization of mentions for incoming messages. Default state for normalizeMentions is true

SetRemoveRecipientMention(Boolean)

Configures the removing of mentions of the Agent's name from incoming messages. Default state for removeRecipientMention is true

SetStartTypingTimer(Boolean)

Configures the typing timer when messages are received. Default state for startTypingTimer is true

WithAdaptiveCardOptions(AdaptiveCardsOptions)

Configures the processing of Adaptive Card requests.

WithAuthorization(IChannelAdapter, UserAuthorizationOptions)

Configures user authorization for the application.

WithFileDownloaders(IList<IInputFileDownloader>)

Configures the processing of file download requests. This allows the application to handle file downloads from user messages. The file downloaders are used to process files that are sent by users in the chat. They can be used to download files from various sources, such as URLs or local paths.

Applies to