PromptVault.Message.MediaMessage (PromptVault v0.1.0)

View Source

A message representing media content like images, audio, or video.

Media messages always have the role :media and contain MIME type, URL information, and optional size metadata.

Summary

Types

t()

@type t() :: %PromptVault.Message.MediaMessage{
  assigns: map(),
  engine: atom() | nil,
  mime_type: String.t(),
  raw: any(),
  role: :media,
  size: pos_integer() | nil,
  template: tuple() | nil,
  url: String.t()
}