Skip to main content

Module user_facing_error

Module user_facing_error 

Source

Modules§

codes
metadata_keys
Message/event metadata keys used to track error disclosure decisions.

Structs§

UserFacingError
UserFacingErrorContext

Enums§

ErrorDisclosure
How much detail about a run-blocking error is shown to session viewers.

Functions§

classify_runtime_error_message
is_provider_quota_message
Provider quota/billing-exhaustion patterns shared by the string classifier and the driver-boundary semantic classifier (LlmErrorKind).
is_usage_limit_message
Subscription/plan usage-limit patterns shared by the string classifier and the transient-retry gate. These recover only at a future reset time (hours away), so unlike an ordinary 429 they must not be retried within the driver backoff window nor collapsed into the “wait a moment” rate-limit copy.
parse_usage_limit_reset_at
Extract the absolute reset time (resets_at, unix seconds) from a usage-limit error body when present. Prefers the absolute resets_at field over the relative resets_in_seconds because this classifier is clock-free and callers want a stable timestamp they can render in the viewer’s timezone.
trim_error_chain_prefixes

Type Aliases§

UserFacingErrorFields