Skip to main content

agrag.eval.trajectory

Agent trajectory evaluation: read runs, check structure, judge quality.

A trajectory is the ordered tool and model steps of one agent run, read from its OpenTelemetry spans (see agrag.agents.tracing). Structural rules over it are deterministic; task completion and trajectory quality use an LLM judge.

Classes:

  • SpanCapture – Capture one agent run's spans for read_trajectory.
  • Step – One tool or model step of an agent run.
  • Trajectory – The ordered steps of one agent run.

Functions: