Skip to main content

lib/pi/protocol/llm/message.ex

defmodule Pi.Protocol.LLM.Message do
  @moduledoc "LLM message passed across the Pi bridge."

  use JSONCodec, fast_path: :json

  defstruct [:role, :content]

  @type t :: %__MODULE__{role: atom(), content: String.t()}

  codec(:role, atom: :existing)
end