Skip to main content

addEpisodicEvents

client.memory.addEpisodicEvents(id: string, data: AddEpisodicEventsRequest): Promise<unknown>

Appends new events to an episodic memory.

Adds one or more event records to the episodic memory's timeline. Events capture discrete actions, observations, or state changes that occurred during an operation.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the episodic memory
dataAddEpisodicEventsRequestYesThe events to add

Returns​

Promise<unknown> — A promise that resolves when the events have been added

Example​

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

const client = new CodeBoltClient();

const result = await client.memory.addEpisodicEvents('id', /* AddEpisodicEventsRequest */);
console.log(result);