Skip to main content

getTaskSteps

client.chat.getTaskSteps(threadId: string): Promise<ChatThreadStep[]>

Retrieves steps for a thread via the task endpoint.

Returns the step sequence for a thread, accessed through the task management API path.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread

Returns

Promise<ChatThreadStep[]> — A promise that resolves to an array of ChatThreadStep objects

Example

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

const client = new CodeBoltClient();

const result = await client.chat.getTaskSteps('threadId');
console.log(result);