archiveAgentThread()
This method operates on actor project threads and thread-scoped resources.
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.archiveAgentThread(threadId);}Signature
function archiveAgentThread( threadId: string, client?: WachtClient,): Promise<AgentThread>Parameters
›threadId: string;
threadId: string;Target actor project thread id.
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.