Skip to main content

updateThread

client.memory.updateThread(threadId: string, data: UpdateMemoryThreadRequest): Promise<MemoryThread>

Updates the metadata or content of a generic memory thread.

Modifies an existing thread's properties such as name, tags, or stored data.

Parameters​

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to update
dataUpdateMemoryThreadRequestYesThe fields to update on the thread

Returns​

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

Example​

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

const client = new CodeBoltClient();

const result = await client.memory.updateThread('threadId', /* UpdateMemoryThreadRequest */);
console.log(result);