Expand description
Error types for serdes-ai.
This module provides a comprehensive error hierarchy that matches pydantic-ai’s error system, enabling proper error handling and retry logic.
Structs§
- Agent
RunError - Error during agent run execution.
- Approval
Required - Tool requires user approval before execution.
- Call
Deferred - Tool call was deferred for later execution.
- Fallback
Exception Group - Group of errors from fallback attempts.
- Incomplete
Tool Call - Incomplete tool call from model (missing required fields).
- Model
ApiError - API error from the model provider.
- Model
Http Error - HTTP-level error (connection, timeout, etc.).
- Model
Retry - Model requested a retry, typically due to validation failure.
- Tool
Retry Error - Tool requested a retry.
- Unexpected
Model Behavior - Unexpected behavior from the model.
- Usage
Limit Exceeded - Usage limits exceeded.
- User
Error - User-defined error from tools or validators.
Enums§
- Http
Error Kind - HTTP error classification for model requests.
- Serdes
AiError - The main error type for serdes-ai operations.
- Usage
Limit Type - Type of usage limit that was exceeded.
Type Aliases§
- ModelAPI
Error Deprecated - Deprecated alias for
ModelApiError. - ModelHTTP
Error Deprecated - Deprecated alias for
ModelHttpError. - Result
- Result type alias using SerdesAiError.