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

Pre-resolved core view of an inline approval tool call card.

The editor builder runs the agent's approval-preview builder (or reads a
supplied preview), then stores the already-built `summary`, `preview_kind`
(`:diff | :command | :target | :args`), and `preview_lines` here. The GUI
encoder serializes these resolved fields without touching any agent struct.

# `preview_kind`

```elixir
@type preview_kind() :: :diff | :command | :target | :args
```

Resolved preview kind for an approval card.

# `t`

```elixir
@type t() :: %Minga.RenderModel.UI.AgentChat.ApprovalView{
  name: String.t(),
  preview_kind: preview_kind(),
  preview_lines: [String.t()],
  summary: String.t(),
  tool_call_id: String.t()
}
```

---

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