Skip to main content

archiveContextThread

client.memory.archiveContextThread(threadId: string): Promise<unknown>

Archives a context thread to remove it from active listings.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the context thread to archive

Returns

Promise<unknown> — A promise that resolves when the thread has been archived

Example

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

const client = new CodeBoltClient();

const result = await client.memory.archiveContextThread('threadId');
console.log(result);