import { ChatHistoryItem, ChatModelFunctions, LlamaChatResponse, LlamaChatResponseFunctionCall, } from 'node-llama-cpp' export interface LlamaChatResult { responseText: string | null functionCalls?: LlamaChatResponseFunctionCall[] stopReason: LlamaChatResponse['metadata']['stopReason'] } export type ContextShiftStrategy = ((options: { chatHistory: ChatHistoryItem[] metadata: any }) => { chatHistory: ChatHistoryItem[]; metadata: any }) | null