ExAgent.Message.Part.Text (ExAgent v3.0.0)

View Source

Assistant text with an optional provider phase. Narration has phase :commentary. Answer text has phase :final_answer or nil.

Stability — Stable.

Summary

Types

phase()

@type phase() :: :commentary | :final_answer | nil

t()

@type t() :: %ExAgent.Message.Part.Text{
  content: String.t(),
  id: String.t() | nil,
  metadata: map(),
  phase: phase()
}