Files
2026-02-05 15:27:49 +08:00

33 lines
1.6 KiB
TypeScript

import { ChatWrapper } from "../ChatWrapper.js";
import { ChatHistoryItem, ChatModelFunctions, ChatWrapperGenerateContextStateOptions, ChatWrapperGeneratedContextState, ChatWrapperSettings } from "../types.js";
export declare class Llama3_1ChatWrapper extends ChatWrapper {
readonly wrapperName: string;
readonly cuttingKnowledgeDate?: Date | (() => Date) | null;
readonly todayDate: Date | (() => Date) | null;
readonly noToolInstructions: boolean;
readonly settings: ChatWrapperSettings;
constructor(options?: {
/**
* Set to `null` to disable
*
* Defaults to December 2023
*/
cuttingKnowledgeDate?: Date | (() => Date) | number | string | null;
/**
* Set to `null` to disable
*
* Defaults to current date
*/
todayDate?: Date | (() => Date) | number | string | null;
noToolInstructions?: boolean;
});
addAvailableFunctionsSystemMessageToHistory(history: readonly ChatHistoryItem[], availableFunctions?: ChatModelFunctions, { documentParams }?: {
documentParams?: boolean;
}): readonly ChatHistoryItem[];
generateContextState({ chatHistory, availableFunctions, documentFunctionParams }: ChatWrapperGenerateContextStateOptions): ChatWrapperGeneratedContextState;
generateAvailableFunctionsSystemText(availableFunctions: ChatModelFunctions, { documentParams }: {
documentParams?: boolean;
}): import("../utils/LlamaText.js")._LlamaText;
prependPreambleToChatHistory(chatHistory: readonly ChatHistoryItem[]): readonly ChatHistoryItem[];
}