1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Error taxonomy for LLM calls.
//!
//! Variants are intentionally coarse — adapters carry transport-specific
//! detail in the inner `String`, and the enum is `#[non_exhaustive]` so
//! future failure modes (rate limiting, content filter rejections,
//! context-window overflow) can be added without breaking callers that
//! match exhaustively today.
use Error;
/// Errors returned by any [`LlmClient`](crate::client::LlmClient)
/// implementation.
///
/// Adapters should map provider-specific failures onto the closest
/// variant. The inner `String` payload is for human-readable context and
/// is not part of any machine-readable contract.