Skip to main content

activateThreadStep

client.chat.activateThreadStep(threadId: string, stepId: string): Promise<ChatThreadStep>

Activates a step in a chat thread.

Marks the specified step as the currently active step, indicating that work is in progress on this step.

Parameters​

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread
stepIdstringYesThe unique identifier of the step to activate

Returns​

Promise<ChatThreadStep> — A promise that resolves to the activated ChatThreadStep

Example​

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

const client = new CodeBoltClient();

const result = await client.chat.activateThreadStep('threadId', 'stepId');
console.log(result);