Skip to content
Calm motion: animations on this site only fade, with no movement

Run trace ​

The steps of an agent run with tools, inputs, outputs, and times

Shows what an AI agent did and how long each step took, so a developer or a curious user can see why an answer came out as it did. For the plan before a run, use the agent plan.

Basic
5 steps · 7.3s · 1 error
  1. Plan the answer model done1.4s
    Input
    Which mic is best for a podcast in a small room?
    Output
    Search the catalog for dynamic mics, then check stock.
  2. search_catalog tool done620ms
    Input
    { "query": "dynamic mic", "limit": 5 }
    Output
    5 products
  3. check_stock tool error3s
    Input
    { "sku": "MIC-USB-01" }
    Output
    Timeout after 3 s
  4. check_stock tool done410ms
    Input
    { "sku": "MIC-USB-01" }
    Output
    12 in stock
  5. Write the answer model running1.9s
  • steps is the tree of steps. Each step has an id, a name, a kind, a status, a start and a duration in milliseconds from the start of the run, and optional input, output, and children.
  • The status is ok, error, or running. It shows as a mark and a word. An error also gets a striped bar.
  • The bar of each step sits on a shared time line, so long steps and gaps are easy to see. Children are indented under their parent.
  • A step opens to show its input and output. It uses the native details element, so the keyboard works without extra code.
  • The top line counts the steps, the total time, and the errors.
  • locale formats the times. Change the words with labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessRunTrace } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
steps*BlessTraceStep[]—
localestring"en"
labelsPartial<Record<BlessTraceStatus, string> & { summary: (steps: number, time: string, errors: number) => string; input: string; output: string; }>—

Released under the MIT License. Character names and artwork belong to their owners.