setActiveThread
client.chat.setActiveThread(data: SetActiveThreadRequest): Promise<void>
Sets the active chat thread.
Switches the current focus to the specified thread, making it the primary conversation context for subsequent operations.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | SetActiveThreadRequest | Yes | The active thread selection |
Returns
Promise<void> — A promise that resolves when the active thread has been set
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.chat.setActiveThread(/* SetActiveThreadRequest */);
console.log(result);