UNPKG

n8n-nodes-graphiti

Version:

Graphiti temporal knowledge graph memory for n8n AI agents

32 lines 1.19 kB
import { BaseChatMemory, BaseChatMemoryInput } from '@langchain/community/memory/chat_memory'; import { InputValues, MemoryVariables, OutputValues } from '@langchain/core/memory'; export interface GraphitiChatMemoryInput extends BaseChatMemoryInput { apiUrl: string; apiKey: string; userId: string; contextWindowLength?: number; searchLimit?: number; memoryKey?: string; } export declare class GraphitiChatMemory extends BaseChatMemory { private apiClient; private userId; private contextWindowLength; private searchLimit; memoryKey: string; constructor(fields: GraphitiChatMemoryInput); get memoryKeys(): string[]; /** * Load memory variables by combining short-term memory with long-term facts from Graphiti */ loadMemoryVariables(values: InputValues): Promise<MemoryVariables>; /** * Save conversation context to both short-term memory and Graphiti long-term storage */ saveContext(inputValues: InputValues, outputValues: OutputValues): Promise<void>; /** * Clear all memory (both short-term and long-term) */ clear(): Promise<void>; } //# sourceMappingURL=GraphitiChatMemory.d.ts.map