Skip to content
HomeCobalt

Trace

Shows what an agent did to reach its answer, step by step, so a person can check where an answer came from or see where it went wrong, folded away until they want it.

Examples

How a research assistant reached its answer: one line that says what it did and how long it took, opened to the steps, and a step opened to what it sent and got back.
  1. Done, Read the Q3 13F-HR2.1 s
  2. Done, Compared holdings with Q21.3 s
In a cardA nightly import beside its result: what it brought in, and the trace of how it got there, closed, with the one step that failed and what the import did without it.

13F filings, Oct 17

412 filers, 61,208 positions. 3 filers left out.

States

  1. Done, Searched EDGAR for Harbour Street0.8 s
  2. Failed, Read the Q2 amendmentEDGAR timed out. The answer uses the original Q2 filing.12.0 s
  3. Running, Reading the Q2 13F-HR
  4. Queued, Compare the two quarters
StatusesEvery status on one axis: done with a check, failed with a cross and why under it, running turning, queued dashed. The times line up as figures in a table, the total over them.

Usage

Use it when

  • An agent's reply that read, searched or ran something a person may want to check.
  • A long job's steps beside its result, such as an import.

Use something else when

  • A record's history of changes. Use Timeline instead.
  • A long job a person waits on with a share done. Use Progress instead.

Rules

General

Content

Avoid

Limits

Install

npx shadcn@latest add https://kaanarici.com/r/cobalt/trace.json
import { Trace, TraceStep } from "@/components/cobalt/ui/trace"