Pending tool approval data.
When a tool requires user confirmation before execution, this struct
captures the tool call identity and the reply-to PID for the blocked
Task process. Flows from Agent.Session through editor state, input
handling, chat decorations, and GUI protocol encoding.
Summary
Types
A public, editor-safe approval preview.
Structured preview kind for an approval card.
A pending tool approval.
Functions
Builds the structured preview shown in inline approval cards.
Creates a pending approval with a structured preview card.
Returns an editor-safe map without the private reply PID.
Types
@type preview() :: MingaAgent.ToolApproval.Preview.t()
A public, editor-safe approval preview.
@type preview_kind() :: MingaAgent.ToolApproval.Preview.kind()
Structured preview kind for an approval card.
@type t() :: %MingaAgent.ToolApproval{ args: map(), name: String.t(), preview: preview(), reply_to: pid() | nil, tool_call_id: String.t() }
A pending tool approval.
Functions
Builds the structured preview shown in inline approval cards.
Creates a pending approval with a structured preview card.
Returns an editor-safe map without the private reply PID.