LlmCall.EventStream.Error exception (llm_call v0.4.0)

Copy Markdown View Source

Raised when an event-stream body cannot be framed.

LlmCall.EventStream.parse/2 returns messages rather than a result tuple, so a frame with a bad checksum, an impossible length or an unknown header type raises instead of returning an error. LlmCall.Stream turns this into an LlmCall.HTTP.Error carrying an :invalid_response canonical error.

Summary

Types

t()

@type t() :: %LlmCall.EventStream.Error{__exception__: term(), message: String.t()}