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§
- Dummy
Error - Reference implementation: the shape of error a real provider would ship. Concrete provider crates will define their own.
- LlmError
Kind - A coarse, provider-agnostic classification of an
LlmError.
Traits§
- LlmError
- Marker trait that every
LlmProvider::Errormust satisfy.
Functions§
- kind_
from_ http_ status - Maps an HTTP status code onto an
LlmErrorKind. Shared by every provider so the classification ofProvider { status, .. }errors stays consistent.