Skip to main content

archiveJsonThread

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

Archives a JSON thread to remove it from active listings.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the JSON 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.archiveJsonThread('threadId');
console.log(result);