Skip to main content

getEpisodicEvents

client.memory.getEpisodicEvents(id: string, params?: EpisodicEventsParams): Promise<unknown>

Retrieves events from an episodic memory with optional filtering.

Returns the sequence of events stored in the episodic memory, optionally filtered by event type, date range, or agent.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the episodic memory
paramsEpisodicEventsParamsNoOptional parameters to filter events

Returns

Promise<unknown> — A promise that resolves to the filtered list of events

Example

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

const client = new CodeBoltClient();

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