Skip to main content

executeType

client.persistentMemory.executeType(id: string, data?: ExecutePersistentMemoryRequest): Promise<unknown>

Executes a persistent memory type's processing pipeline.

Runs the defined processing steps against the provided input data or configured data source, generating new memory entries as output.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the type to execute
dataExecutePersistentMemoryRequestNoOptional execution parameters and input data

Returns​

Promise<unknown> — A promise that resolves when the execution has been initiated

Example​

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

const client = new CodeBoltClient();

const result = await client.persistentMemory.executeType('id');
console.log(result);