AgentTrace
A run as a waterfall. Spans nest under the step that started them, bars sit at their real start and length, parents fold away children. AI.
Open playgroundStep09.4 sTook
9.4 s
912 tokens1.8 s
1.3 s
5.1 s
640 tokens1.6 s
3.5 s
388 tokens1.2 s
About
AgentTrace is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { AgentTrace } from "@ashutoshswamy/smoui" and set spans.
Install
npm i @ashutoshswamy/smouiUsage
import { AgentTrace } from "@ashutoshswamy/smoui";
<AgentTrace spans={[{ id: "r", name: "agent", kind: "agent", start: 0, end: 9400, children }]} />Props 1
- spans
name, kind (agent, llm, tool), start and end in ms, optional tokens, error and children.
TraceSpan[]
More ai components
- AgentPickerChoose which agent takes the job. Cards show purpose, tools and cost; a marker slides between them and arrow keys move.
- AgentStatusPillOne pill for what an agent is doing: ready, thinking, using a tool, waiting on you or failed. The glyph and width morph between states.
- AiOrbA living orb for voice and agent states: breathes, swells with sound, turns while thinking.
- ApprovalGateAn agent asks before it runs a tool. Review the input, edit it, approve once or always, or deny; the card settles into its decision.
- AttachmentChipA file waiting to be sent. A ring fills around the tile while it uploads, a warning and a Retry button replace it on failure, and remove sits inside the chip.
- BranchSwitcher"2 / 3" for a regenerated reply. Step through versions with the arrows; the count rolls in the direction you moved.