NewWacht Bench is live — AI-assisted development for Wacht

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;
Target actor project thread id.
request: UpdateAgentThreadRequest;
Request payload object sent to the backend API.
title?: string | undefined;
title value used by this request.

Return value

id?: string | undefined;
Thread id.
project_id?: string | undefined;
Owning project id.
archived_at?: string | null | undefined;
Archive timestamp when archived.

On this page