Skip to main content

Install

Instrument

After instrumentation every Agent.run / Agent.run_sync call and every tool invocation is captured — no per-callsite changes needed.

Minimal example

What gets captured

  • agent spans for every run / run_sync / run_stream call with the user prompt, system prompt, and final structured output
  • llm spans for each underlying model call, including token counts and any tool-call requests from the model
  • tool spans for each @agent.tool invocation with validated arguments and return value
  • Validation errors from Pydantic are captured on the span as errors so you can filter failed runs in the dashboard