Skip to main content

getEpisodicMemory

client.memory.getEpisodicMemory(id: string): Promise<MemoryThread>

Retrieves a specific episodic memory by its unique identifier.

Returns the episodic memory metadata. Use to access the individual events stored within the memory.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the episodic memory to retrieve

Returns

Promise<MemoryThread> — A promise that resolves to the episodic memory thread

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.memory.getEpisodicMemory('id');
console.log(result);