Enums§
Functions§
- error_
chain_ string - Render an error’s full cause chain (
Displayof every level,:-joined). - humanize_
api_ error - Translate an Anthropic API error response into a human-actionable message.
- humanize_
api_ error_ with_ reset - Like
humanize_api_errorbut surfaces a known rate-limit reset time in the 429 message so the failure is honest rather than cryptic.reset_hintis a human-readable duration string, e.g."47s". - humanize_
network_ error - Translate a reqwest transport error into a human-actionable message.
- humanize_
provider_ network_ error - Host-aware variant of
humanize_network_errorfor non-Anthropic providers (OpenAI Codex, Groq, local OpenAI-compat endpoints, …). - sanitize_
error_ type - Map an untrusted provider error-type string onto a vetted static label.