anthropic.internal._anth_stream_failure

(internal) Preserve a valid in-band provider error and its native type.

Reference version

Signature

function anthropic.internal._anth_stream_failure(
raw: string
) -> ai.errors.Failure throws never

(internal) Preserve a valid in-band provider error and its native type.

Source:<builtin>/anthropic/ns_internal/messages.bamlbytes 42271–42930