Skip to main content

Module error

Module error 

Source
Expand description

Error types for the Pi application.

Structs§

AuthDiagnostic
Structured auth/config diagnostic metadata for downstream tooling.
ErrorHints
Structured hints for error remediation.

Enums§

AuthDiagnosticCode
Stable machine codes for auth/config diagnostics across provider families.
Error
Main error type for the Pi application.

Functions§

is_context_overflow
Check whether an error message indicates the prompt exceeded the context window. Matches the 15 pi-mono overflow patterns plus Cerebras/Mistral status code pattern.
is_retryable_error
Check whether an error is retryable (transient). Matches pi-mono’s _isRetryableError() logic:

Type Aliases§

Result
Result type alias using our error type.