OSSS.ai.exceptions.llm_errors¶
OSSS.ai.exceptions.llm_errors
¶
LLM-specific exceptions for OSSS.
This module defines exceptions related to Language Model interactions, API failures, and LLM provider-specific error conditions with intelligent retry policies and circuit breaker support.
LLMError
¶
Bases: OSSSError
Base exception for LLM-related failures.
Represents errors that occur during interactions with Language Model providers, designed for intelligent retry and circuit breaker patterns.
LLMQuotaError
¶
LLMAuthError
¶
LLMRateLimitError
¶
LLMTimeoutError
¶
LLMContextLimitError
¶
LLMModelNotFoundError
¶
LLMServerError
¶
LLMValidationError
¶
Bases: LLMError
Exception raised when LLM response validation fails.
Represents structured response parsing failures when using Pydantic AI or other structured output formats. These errors indicate the LLM returned content that doesn't match the expected schema.
get_user_message()
¶
Get user-friendly error message with validation guidance.