An assistant frame: a complete or partial assistant message.
With --include-partial-messages, Claude Code emits an assistant frame per content block after the matching stream events, so content usually holds one block and stop_reason is often nil. A model of "<synthetic>" marks a message Claude Code made itself, for example after an API error; its usage counts are zero.
error decodes the SDK's SDKAssistantMessageError values to atoms. An unknown value decodes to {:other, string}.
Summary
Functions
Decodes an assistant frame.
Types
@type error() :: :authentication_failed | :oauth_org_not_allowed | :account_on_hold | :verification_required | :billing_error | :rate_limit | :overloaded | :invalid_request | :model_not_found | :server_error | :unknown | :max_output_tokens | :cloud_credential_error | {:other, String.t()}
@type t() :: %MingaClaudeBridge.Wire.Assistant{ content: [MingaClaudeBridge.Wire.Block.t()], error: error() | nil, id: String.t() | nil, model: String.t() | nil, parent_tool_use_id: String.t() | nil, session_id: String.t() | nil, stop_reason: MingaClaudeBridge.Wire.StopReason.t() | nil, usage: MingaClaudeBridge.Wire.Usage.t() | nil, uuid: String.t() | nil }
Functions
@spec from_wire(MingaClaudeBridge.Wire.Field.json_map()) :: {:ok, t()} | :error
Decodes an assistant frame.