MingaAgent.Tool.Output.Attachment (Minga v0.1.0)

Copy Markdown View Source

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

Summary

Functions

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

Types

t()

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

Functions

image(reference, filename)

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