NewWacht Bench is live — AI-assisted development for Wacht

unarchiveAgentThread()

This method restores an archived 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';  return client.ai.unarchiveAgentThread(threadId);}

Signature

function unarchiveAgentThread(  threadId: string,  client?: WachtClient,): Promise<AgentThread>

Parameters

threadId: string;
Target actor project thread id.

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