PtcRunner.Kino.TraceTree (PtcRunner v0.9.0)

Copy Markdown View Source

Interactive trace tree widget for Livebook.

Renders a hierarchical view of SubAgent execution from a Step struct, showing agent names, durations, token counts, and expandable turn details.

Usage

{result, step} = SubAgent.run(planner, llm: my_llm, context: ctx, debug: true)
PtcRunner.Kino.TraceTree.new(step)

The widget works with the in-memory Step struct. For multi-agent hierarchies, pass a list of related steps:

PtcRunner.Kino.TraceTree.new([parent_step, child1_step, child2_step])

Requires the kino dependency.

Summary

Functions

Creates a new TraceTree widget from a Step or list of Steps.

Functions

new(step)

@spec new(PtcRunner.Step.t() | [PtcRunner.Step.t()]) :: Kino.JS.t()

Creates a new TraceTree widget from a Step or list of Steps.

Examples

PtcRunner.Kino.TraceTree.new(step)
PtcRunner.Kino.TraceTree.new([parent_step, child_step1, child_step2])