# `Nous.Eval.Trace.AgentRun`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/nous/eval/trace/agent_run.ex#L1)

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_id`s of the runs this one started, in
    start order
  * `:seq` - the `seq` of the start event

# `t`

```elixir
@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
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
