# `MingaAgent.Tool.Output.Attachment`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_agent/tool/output/attachment.ex#L1)

Provider-neutral image metadata whose bytes live in a durable capture.

# `t`

```elixir
@type t() :: %MingaAgent.Tool.Output.Attachment{
  filename: String.t(),
  kind: :image,
  media_type: String.t(),
  reference: MingaAgent.Tool.Output.Reference.t()
}
```

# `image`

```elixir
@spec image(MingaAgent.Tool.Output.Reference.t(), String.t()) ::
  {:ok, t()} | {:error, :unsupported_image_format | :invalid_attachment}
```

Builds an image attachment without copying the image bytes into conversation records.

---

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