Skip to main content

getGraph

client.threads.getGraph(): Promise<ThreadGraphNode[]>

Retrieves the complete thread graph structure.

Returns all threads as nodes in a graph representation, showing relationships and connections between threads. This is useful for visualizing thread hierarchies and dependencies.

Parameters

No parameters.

Returns

Promise<ThreadGraphNode[]> — A promise that resolves to an array of ThreadGraphNode objects

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.threads.getGraph();
console.log(result);