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

Copy Markdown View Source

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).

Summary

Types

Resolved scope that auto-approved this tool call.

Resolved tool-call execution status.

t()

Types

auto_approved_scope()

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

Resolved scope that auto-approved this tool call.

status()

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

Resolved tool-call execution status.

t()

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