UNPKG

@n8n/n8n-nodes-langchain

Version:

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

35 lines (29 loc) 905 B
/** * Redis Chat Memory Node - Version 1.1 * Stores the chat history in Redis. */ export interface LcMemoryRedisChatV11Params { /** * The key to use to store the memory * @default ={{ $json.sessionId }} */ sessionKey?: string | Expression<string> | PlaceholderValue; /** * For how long the session should be stored in seconds. If set to 0 it will not expire. * @default 0 */ sessionTTL?: number | Expression<number>; } export interface LcMemoryRedisChatV11Credentials { redis: CredentialReference; } interface LcMemoryRedisChatV11NodeBase { type: '@n8n/n8n-nodes-langchain.memoryRedisChat'; version: 1.1; credentials?: LcMemoryRedisChatV11Credentials; isTrigger: true; } export type LcMemoryRedisChatV11ParamsNode = LcMemoryRedisChatV11NodeBase & { config: NodeConfig<LcMemoryRedisChatV11Params>; }; export type LcMemoryRedisChatV11Node = LcMemoryRedisChatV11ParamsNode;