Expand description
Error types and handling
Enums§
- Guardrail
Phase - Phase where a guardrail violation occurred.
- LLMError
- Error types that can occur when interacting with LLM providers.
Constants§
- MAX_
ERROR_ BODY_ DISPLAY_ BYTES - Maximum bytes of a provider response body included in
Displayoutput.
Functions§
- is_
fallbackable - Default fallbackability predicate shared by the fallback layer.
- is_
http_ status_ retryable - Returns
truewhen an HTTP status code represents a retryable server/transient error. - is_
retryable - Default retryability predicate shared by the retry layer.
- is_
transport_ retryable_ message - Returns
truewhen a transport error message represents a retryable failure. - truncate_
for_ display - Truncates a response body for safe inclusion in log-oriented display output.