/** * @module teams-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Message, FunctionCall } from './Message'; import { PromptFunctions } from './PromptFunctions'; import { RenderedPromptSection } from './PromptSection'; import { PromptSectionBase } from './PromptSectionBase'; import { TurnContext } from 'botbuilder'; import { Tokenizer } from '../tokenizers'; import { Memory } from '../MemoryFork'; /** * An `assistant` message containing a function to call. * @remarks * The function call information is returned by the model so we use an "assistant" message to * represent it in conversation history. */ export declare class FunctionCallMessage extends PromptSectionBase { private _length; /** * Name and arguments of the function to call. */ readonly function_call: FunctionCall; /** * Creates a new 'FunctionCallMessage' instance. * @param {FunctionCall} function_call name and arguments of the function to call. * @param {number} tokens Optional. Sizing strategy for this section. Defaults to `auto`. * @param {string} assistantPrefix Optional. Prefix to use for assistant messages when rendering as text. Defaults to `assistant: `. */ constructor(function_call: FunctionCall, tokens?: number, assistantPrefix?: string); /** * @private * @param {TurnContext} context - Context for the current turn of conversation. * @param {Memory} memory - Memory to use for rendering. * @param {PromptFunctions} functions - Prompt functions to use for rendering. * @param {Tokenizer} tokenizer - Tokenizer to use for encoding text. * @param {number} maxTokens - Maximum number of tokens allowed. * @returns {Promise>} Rendered prompt section as a string. */ renderAsMessages(context: TurnContext, memory: Memory, functions: PromptFunctions, tokenizer: Tokenizer, maxTokens: number): Promise>; } //# sourceMappingURL=FunctionCallMessage.d.ts.map