Skip to main content

updateContextThread

client.memory.updateContextThread(threadId: string, data: UpdateContextThreadRequest): Promise<MemoryThread>

Updates the metadata of a context thread.

Modifies thread-level properties such as name and tags without affecting the stored conversational context.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the context thread to update
dataUpdateContextThreadRequestYesThe metadata fields to update

Returns

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

Example

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

const client = new CodeBoltClient();

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