Nous.Eval.Trace.AgentRun (nous v0.21.1)

Copy Markdown View Source

One agent run in a Nous.Eval.Trace, from Nous.Eval.Trace.runs/1.

  • :agent_run_id / :parent_agent_run_id - the run and its parent (nil for the root run)
  • :parent_tool_call_id - the tool call that started a sub-agent run
  • :role - :agent | :judge | :simulator | :reflector

  • :agent_name, :sub_agent_template, :sub_agent_index - labels from the run start event
  • :status - :ok (run stop), :error (run exception) or :incomplete (no end event in the trace)
  • :error - the exception event's reason, if any
  • :children - the agent_run_ids of the runs this one started, in start order
  • :seq - the seq of the start event

Summary

Types

t()

@type t() :: %Nous.Eval.Trace.AgentRun{
  agent_name: String.t() | nil,
  agent_run_id: String.t(),
  children: [String.t()],
  error: term(),
  parent_agent_run_id: String.t() | nil,
  parent_tool_call_id: String.t() | nil,
  role: atom() | nil,
  seq: non_neg_integer(),
  status: :ok | :error | :incomplete,
  sub_agent_index: non_neg_integer() | nil,
  sub_agent_template: String.t() | nil
}