Skip to main content

autoUpdateName

plugin.threadsApi.autoUpdateName(data: AutoUpdateNameRequest): Promise<void>

Automatically updates a thread's name based on its content.

Analyzes the thread's execution history, messages, and context to generate an appropriate name that reflects its purpose and activity. This is useful for maintaining descriptive thread labels without manual intervention.

Parameters​

ParameterTypeRequiredDescription
dataAutoUpdateNameRequestYesThe request containing the thread ID to rename

Returns​

Promise<void> — A promise that resolves when the thread name has been updated

Example​

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.threadsApi.autoUpdateName(/* AutoUpdateNameRequest */);
console.log(result);