@microsoft/teams-ai
Version:
SDK focused on building AI based applications for Microsoft Teams.
27 lines • 938 B
JavaScript
;
/**
* @module teams-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserMessage = void 0;
const TemplateSection_1 = require("./TemplateSection");
/**
* A user message.
*/
class UserMessage extends TemplateSection_1.TemplateSection {
/**
* Creates a new 'UserMessage' instance.
* @param {string} template Template to use for this section.
* @param {number} tokens Optional. Sizing strategy for this section. Defaults to `auto`.
* @param {string} userPrefix Optional. Prefix to use for user messages when rendering as text. Defaults to `user: `.
*/
constructor(template, tokens = -1, userPrefix = 'user: ') {
super(template, 'user', tokens, true, '\n', userPrefix);
}
}
exports.UserMessage = UserMessage;
//# sourceMappingURL=UserMessage.js.map