UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

31 lines (26 loc) 818 B
/** * Simple Memory Node - Version 1 * Stores in n8n memory, so no credentials required */ export interface LcMemoryBufferWindowV1Params { /** * The key to use to store the memory in the workflow data * @default chat_history */ sessionKey?: string | Expression<string> | PlaceholderValue; /** * Context Window Length * @hint How many past interactions the model receives as context * @default 5 */ contextWindowLength?: number | Expression<number>; } interface LcMemoryBufferWindowV1NodeBase { type: '@n8n/n8n-nodes-langchain.memoryBufferWindow'; version: 1; isTrigger: true; } export type LcMemoryBufferWindowV1ParamsNode = LcMemoryBufferWindowV1NodeBase & { config: NodeConfig<LcMemoryBufferWindowV1Params>; }; export type LcMemoryBufferWindowV1Node = LcMemoryBufferWindowV1ParamsNode;