UNPKG

@microsoft/teams-ai

Version:

SDK focused on building AI based applications for Microsoft Teams.

27 lines 1.03 kB
"use strict"; /** * @module teams-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AssistantMessage = void 0; const TemplateSection_1 = require("./TemplateSection"); /** * A message sent by the assistant. */ class AssistantMessage extends TemplateSection_1.TemplateSection { /** * Creates a new 'AssistantMessage' instance. * @param {string} template - Template to use for this section. * @param {number} tokens - Optional. Sizing strategy for this section. Defaults to -1, `auto`. * @param {string} assistantPrefix - Optional. Prefix to use for assistant messages when rendering as text. Defaults to `assistant: `. */ constructor(template, tokens = -1, assistantPrefix = 'assistant: ') { super(template, 'assistant', tokens, true, '\n', assistantPrefix); } } exports.AssistantMessage = AssistantMessage; //# sourceMappingURL=AssistantMessage.js.map