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) 903 B
/** * Redis Chat Memory Node - Version 1 * Stores the chat history in Redis. */ export interface LcMemoryRedisChatV1Params { /** * The key to use to store the memory in the workflow data * @default chat_history */ 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 LcMemoryRedisChatV1Credentials { redis: CredentialReference; } interface LcMemoryRedisChatV1NodeBase { type: '@n8n/n8n-nodes-langchain.memoryRedisChat'; version: 1; credentials?: LcMemoryRedisChatV1Credentials; isTrigger: true; } export type LcMemoryRedisChatV1ParamsNode = LcMemoryRedisChatV1NodeBase & { config: NodeConfig<LcMemoryRedisChatV1Params>; }; export type LcMemoryRedisChatV1Node = LcMemoryRedisChatV1ParamsNode;