Minga.RenderModel.UI.AgentChat.ApprovalView (Minga v0.1.0)

Copy Markdown View Source

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.

Summary

Types

Resolved preview kind for an approval card.

t()

Types

preview_kind()

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

Resolved preview kind for an approval card.

t()

@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()
}