Skip to main content

Module errors

Module errors 

Source
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§

AgentRunError
Error during agent run execution.
ApprovalRequired
Tool requires user approval before execution.
CallDeferred
Tool call was deferred for later execution.
FallbackExceptionGroup
Group of errors from fallback attempts.
IncompleteToolCall
Incomplete tool call from model (missing required fields).
ModelApiError
API error from the model provider.
ModelHttpError
HTTP-level error (connection, timeout, etc.).
ModelRetry
Model requested a retry, typically due to validation failure.
ToolRetryError
Tool requested a retry.
UnexpectedModelBehavior
Unexpected behavior from the model.
UsageLimitExceeded
Usage limits exceeded.
UserError
User-defined error from tools or validators.

Enums§

HttpErrorKind
HTTP error classification for model requests.
SerdesAiError
The main error type for serdes-ai operations.
UsageLimitType
Type of usage limit that was exceeded.

Type Aliases§

ModelAPIErrorDeprecated
Deprecated alias for ModelApiError.
ModelHTTPErrorDeprecated
Deprecated alias for ModelHttpError.
Result
Result type alias using SerdesAiError.