MemoGrafter
getMemoryHistory()
Use getMemoryHistory with an application-managed session scope.
What it does
Use getMemoryHistory with an application-managed session scope.
This lower-level API keeps session selection explicit, which is useful for services that manage many users or conversations through one instance.
Signature
TypeScript
getMemoryHistory(memoryId: string, options?: MemoryHistoryOptions): Promise<MemoryHistoryResult>Parameters
memoryId (string) — The memory record to inspect or change.options? (MemoryHistoryOptions) — Optional limits, filters, tags, or operation-specific behavior.Result
The matching memory lineage, including current and superseded versions.
Example
example.ts
const result = await memo.getMemoryHistory(/* identifiers and options */);