Skip to main content

agrag.eval.trajectory.Step

Bases: BaseModel

One tool or model step of an agent run.

Attributes:

  • kind (Literal['tool', 'llm']) – "tool" for a tool call, "llm" for a model call.
  • name (str) – The tool name, or the span name for a model call.
  • args (dict[str, Any]) – The parsed input.value span attribute.
  • output (str) – The step's output text, unwrapped from its tool message.
  • span_id (str) – The span id as hex.
  • parent_ids (list[str]) – The ancestor span ids, nearest first, as hex.
  • started (int) – Start time in nanoseconds.
  • ended (int) – End time in nanoseconds.
  • subagent (str | None) – The subagent_type of the nearest ancestor task span, or None for a planner step.

args​

args: dict[str, Any]

ended​

ended: int

kind​

kind: Literal['tool', 'llm']

name​

name: str

output​

output: str

parent_ids​

parent_ids: list[str]

span_id​

span_id: str

started​

started: int

subagent​

subagent: str | None