agentRunGraph

fun agentRunGraph(message: Message, prompt: String?, nodeSize: DpSize = DpSize(200.dp, 64.dp), labels: AgentRunLabels = AgentRunLabels()): Pair<List<CanvasNode>, List<CanvasEdge>>(source)

Lays an agent run out as a graph: prompt → reasoning / plan → tool calls (parallel calls side by side) → answer → sources. Consecutive tool calls form one row; every node in a row connects to every node in the next.