Hindsight Memory
AI-generatedSummary
Manage AI conversation memory using Hindsight memory bank by storing and retrieving chat history isolated per session.
Inputs
- Bank ID (required) — Identifier of the Hindsight memory bank where conversation history is stored.
- Session ID Type (required) — Determines how the session ID for conversation isolation is obtained, either from input data or a custom key.
- Session Key — Expression or fixed value used to extract or specify the session ID, depending on Session ID Type.
- Context Window Length — Number of human+AI message pairs included in the returned conversation context, minimum 1, default 10.
Output shape
a single AiMemory data object containing the trimmed chat history messages (human and AI) associated with the session, or an empty list if none.
The operation returns conversation history as an array with a length up to twice the context window length (each pair is two messages). It adds this data to the AiMemory output connection; if no history or on error, returns empty array. Session ID isolation ensures separate conversation contexts.