Backplane. AiProtocol. Error
(backplane_ai_protocol v0.7.0)
Copy Markdown
Structured, sanitized protocol error.
message is safe for presentation by default. Provider payloads and opaque state are never
placed here by canonical constructors.
Summary
Types
@type kind() ::
:invalid_request
| :authentication
| :authorization
| :not_found
| :rate_limited
| :upstream_error
| :incompatible
| :timeout
| :cancelled
| :internal
@type t() :: %Backplane.AiProtocol.Error{ attempt_id: String.t() | nil, compatibility: map() | nil, details: map(), http_status: pos_integer() | nil, kind: kind(), message: String.t() | nil, partial_output: map() | nil, provider_code: String.t() | nil, request_id: String.t() | nil, retry_after_ms: non_neg_integer() | nil, retry_hint: :retryable | :not_retryable | nil, stage: atom(), upstream_outcome: upstream_outcome() | nil }
@type upstream_outcome() :: :not_submitted | :known | :unknown