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

11 lines
489 B
TypeScript

import { ChatHistoryItem, ChatModelResponse } from "../../types.js";
import { LlamaText } from "../../utils/LlamaText.js";
export declare function chunkChatItems(chatHistory: readonly ChatHistoryItem[], { generateModelResponseText, joinAdjacentMessagesOfTheSameType }: {
generateModelResponseText: (modelResponse: ChatModelResponse["response"]) => LlamaText;
joinAdjacentMessagesOfTheSameType?: boolean;
}): {
system: LlamaText;
user: LlamaText;
model: LlamaText;
}[];