@microsoft/agents-hosting-teams
Version:
Microsoft 365 Agents SDK for JavaScript
38 lines • 1.55 kB
JavaScript
;
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamsApplicationBuilder = void 0;
const agents_hosting_1 = require("@microsoft/agents-hosting");
const teamsApplication_1 = require("./teamsApplication");
/**
* A builder class for creating and configuring a TeamsApplication instance.
* Extends the AgentApplicationBuilder class to provide additional Teams-specific configuration options.
* @template TState - The type of the turn state.
*/
class TeamsApplicationBuilder extends agents_hosting_1.AgentApplicationBuilder {
constructor() {
super(...arguments);
this._teamsOptions = super.options;
}
/**
* Sets whether to remove recipient mentions from messages.
* @param removeRecipientMention - A boolean indicating whether to remove recipient mentions.
* @returns The current instance of TeamsApplicationBuilder for method chaining.
*/
setRemoveRecipientMention(removeRecipientMention) {
this._teamsOptions.removeRecipientMention = removeRecipientMention;
return this;
}
/**
* Builds and returns a new TeamsApplication instance with the configured options.
* @returns A new TeamsApplication instance.
*/
build() {
return new teamsApplication_1.TeamsApplication(this._teamsOptions);
}
}
exports.TeamsApplicationBuilder = TeamsApplicationBuilder;
//# sourceMappingURL=teamsApplicationBuilder.js.map