Skip to main content

getThread

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

Retrieves a specific memory thread by its unique identifier.

Returns the full thread object including metadata, content references, and status.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to retrieve

Returns

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

Example

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

const client = new CodeBoltClient();

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