Signature
typescripttypescript
await ctx.history(options: HistoryOptions): Promise<HistoryResult>Example
typescripttypescript
const { memory, events } = await ctx.history({ id: memoryId });
console.log(memory.archived, memory.compressedInto);
for (const event of events) {
console.log(event.eventType, event.relatedMemoryId, event.createdAt);
}Event types include created, archived, and compressed.