Backplane. AiProtocol. Message
(backplane_ai_protocol v0.7.0)
Copy Markdown
One ordered protocol item with preserved role and content order.
Summary
Types
@type role() :: :system | :developer | :user | :assistant | :tool
@type status() :: :success | :error | nil
@type t() :: %Backplane.AiProtocol.Message{ content: [Backplane.AiProtocol.ContentBlock.t()], extensions: map(), role: role(), status: status(), tool_call_id: String.t() | nil }
Functions
@spec new(map()) :: {:ok, t()} | {:error, Backplane.AiProtocol.Error.t()}