Skip to main content

getContextThread

client.memory.getContextThread(threadId: string): Promise<MemoryThread>

Retrieves a specific context thread by its unique identifier.

Returns the full context thread including captured conversation data and metadata.

Parameters​

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the context thread to retrieve

Returns​

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

Example​

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

const client = new CodeBoltClient();

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