MingaAgent.ToolApproval.Preview (Minga v0.1.0)

Copy Markdown View Source

Structured, editor-safe preview shown on an inline tool approval card.

Summary

Types

Structured preview kind for an approval card.

t()

A public approval preview rendered by editor frontends.

Functions

Creates an approval preview.

Types

kind()

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

Structured preview kind for an approval card.

t()

@type t() :: %MingaAgent.ToolApproval.Preview{
  kind: kind(),
  lines: [String.t()],
  summary: String.t()
}

A public approval preview rendered by editor frontends.

Functions

new(kind, summary, lines)

@spec new(kind(), String.t(), [String.t()]) :: t()

Creates an approval preview.