Skip to main content

getTaskSteps

plugin.chatApi.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 plugin from '@codebolt/plugin-sdk';

const result = await plugin.chatApi.getTaskSteps('threadId');
console.log(result);