NewWacht Bench is live — AI-assisted development for Wacht

getLatestThreadTaskGraph()

This method returns the most recent task graph for a thread when available.

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.getLatestThreadTaskGraph(threadId);}

Signature

function getLatestThreadTaskGraph(  threadId: string,  client?: WachtClient,): Promise<ThreadTaskGraph | null>

Parameters

threadId: string;
Target actor project thread id.

Return value

result?: ThreadTaskGraph | null | undefined;
Operation result payload.

On this page