Skip to main content

Module error

Module error 

Source
Expand description

LlmError marker trait and reference DummyError implementation.

Every LlmProvider::Error associated type must satisfy the LlmError bound, which is equivalent to std::error::Error + Send + Sync + 'static but named so it is grep-able and can grow cross-provider extension methods without breaking changes.

Enums§

DummyError
Reference implementation: the shape of error a real provider would ship. Concrete provider crates will define their own.
LlmErrorKind
A coarse, provider-agnostic classification of an LlmError.

Traits§

LlmError
Marker trait that every LlmProvider::Error must satisfy.

Functions§

kind_from_http_status
Maps an HTTP status code onto an LlmErrorKind. Shared by every provider so the classification of Provider { status, .. } errors stays consistent.