# `Wardrik.Runs.Totals`

Totals across an agent's runs.

# `t`

```elixir
@type t() :: %Wardrik.Runs.Totals{
  cost_micro_usd: term(),
  failed: term(),
  input_tokens: term(),
  last_at: term(),
  output_tokens: term(),
  runs: term(),
  tool_calls: term()
}
```

# `from_json`

```elixir
@spec from_json(map()) :: t()
```

Builds one from the protocol's JSON.

# `to_json`

```elixir
@spec to_json(t()) :: map()
```

Returns it as the protocol's JSON, without fields that are `nil`.

---

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