useAgentThreadTaskGraphs() reads the paged task graph bundles for one thread. It is the hook behind task graph drawers and graph timelines, where the UI needs the graph, nodes, edges, and summary together.
Usage
The following example shows a basic usage of useAgentThreadTaskGraphs().
Convenience handle for the first loaded graph bundle.
Overview
The hook returns graph bundles instead of plain graph records because most graph UIs need the graph metadata, the nodes, the edges, and the current summary together. It also normalizes missing node, edge, and summary arrays so the caller can render the graph surface directly.