LLM.Stream.Error (LLM v0.2.0)

Copy Markdown View Source

Error chunk from a streaming response.

Emitted when the provider returns an error during streaming. The stream typically ends after an error chunk is received.

Fields

  • :message — human-readable error description
  • :code — optional error code from the provider (e.g., "rate_limit_exceeded")

Example

%LLM.Stream.Error{message: "Rate limit exceeded", code: "rate_limit_exceeded"}

Summary

Types

t()

@type t() :: %LLM.Stream.Error{code: String.t() | nil, message: String.t()}