UNPKG

@microsoft/teams-ai

Version:

SDK focused on building AI based applications for Microsoft Teams.

30 lines 1.13 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.Prompt = void 0; const LayoutEngine_1 = require("./LayoutEngine"); /** * Top level prompt section. * @remarks * Prompts are compositional such that they can be nested to create complex prompt hierarchies. */ class Prompt extends LayoutEngine_1.LayoutEngine { /** * Creates a new 'Prompt' instance. * @param {PromptSection[]} sections - Sections to render. * @param {number} tokens - Optional. Sizing strategy for this section. Defaults to -1, 'auto'. * @param {boolean} required - Optional. Indicates if this section is required. Defaults to `true`. * @param {string} separator - Optional. Separator to use between sections when rendering as text. Defaults to `\n\n`. */ constructor(sections, tokens = -1, required = true, separator = '\n\n') { super(sections, tokens, required, separator); } } exports.Prompt = Prompt; //# sourceMappingURL=Prompt.js.map