PhoenixAI.Message (PhoenixAI v0.1.0)

Copy Markdown View Source

Represents a single message in an AI conversation.

Summary

Types

role()

@type role() :: :system | :user | :assistant | :tool

t()

@type t() :: %PhoenixAI.Message{
  content: String.t() | nil,
  metadata: map(),
  role: role(),
  tool_call_id: String.t() | nil,
  tool_calls: [PhoenixAI.ToolCall.t()] | nil
}