# `Minga.RenderModel.UI.AgentChat.ToolCallView`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga/render_model/ui/agent_chat.ex#L142)

Pre-resolved core view of a tool call message.

The editor builder converts the agent's tool-call struct into this core view
so the GUI encoder never touches the agent struct: `summary` is already the
resolved one-line summary string, `status` is a core atom
(`:running | :complete | :error`), and `auto_approved_scope` is a core atom
(`:session | :turn | nil`).

# `auto_approved_scope`

```elixir
@type auto_approved_scope() :: :session | :turn | nil
```

Resolved scope that auto-approved this tool call.

# `status`

```elixir
@type status() :: :running | :complete | :error
```

Resolved tool-call execution status.

# `t`

```elixir
@type t() :: %Minga.RenderModel.UI.AgentChat.ToolCallView{
  auto_approved_scope: auto_approved_scope(),
  collapsed: boolean(),
  duration_ms: non_neg_integer() | nil,
  is_error: boolean(),
  name: String.t(),
  result: String.t(),
  status: status(),
  summary: String.t()
}
```

---

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