AttractorEx.LLM.MessagePart (attractor_phoenix v0.1.0)

Copy Markdown View Source

Tagged content part used by AttractorEx.LLM.Message.

The unified client still treats multimodal payloads as pass-through data for provider adapters, but this struct gives requests a stable representation for richer content.

Summary

Types

Known content part kinds carried by the normalized message model.

t()

Types

part_type()

@type part_type() ::
  :text
  | :image
  | :audio
  | :document
  | :tool_call
  | :tool_result
  | :thinking
  | :json

Known content part kinds carried by the normalized message model.

t()

@type t() :: %AttractorEx.LLM.MessagePart{
  data: map(),
  mime_type: String.t() | nil,
  text: String.t() | nil,
  type: part_type()
}