updateAgentThread()
This method updates metadata/configuration for an agent thread.
Usage
The following example shows a basic usage of the backend client from @wacht/nextjs/server.
import { wachtClient } from '@wacht/nextjs/server';export async function example() { const client = await wachtClient(); const threadId: string = 'threadid-123'; const request: UpdateAgentThreadRequest = { title: 'Investigate issue thread (updated)', }; return client.ai.updateAgentThread(threadId, request);}Signature
function updateAgentThread( threadId: string, request: UpdateAgentThreadRequest, client?: WachtClient,): Promise<AgentThread>Parameters
›threadId: string;
threadId: string;Target actor project thread id.
›request: UpdateAgentThreadRequest;
request: UpdateAgentThreadRequest;Request payload object sent to the backend API.
›title?: string | undefined;
title?: string | undefined;title value used by this request.
Return value
›id?: string | undefined;
id?: string | undefined;Thread id.
›project_id?: string | undefined;
project_id?: string | undefined;Owning project id.
›archived_at?: string | null | undefined;
archived_at?: string | null | undefined;Archive timestamp when archived.