Compositions
ThinkingTrace
Expandable agent thinking / tool / search trace, driven by real agent state.
While streaming is true the trace is open, shows every row it is given and
shimmers activeLabel. When it turns false the trace collapses to
doneLabel; rows stay mounted and the header re-expands them. A manual
toggle of the header pins expansion until the component unmounts.
Usage
Best practices
Pair above streaming answers in chat. Use ThinkingLoader when you only need a one-line narrated header without an expandable timeline.
Props
Also exports
- interface
ThinkingTraceProps - interface
ThinkingTraceRow - type
ThinkingTraceVariant