pig_protocol/error
Errors that can occur during AI provider interactions.
Types
Errors that can occur during AI provider interactions.
pub type AiError {
ApiError(message: String)
RateLimited
Timeout
Cancelled
InvalidResponse(detail: String)
UnsupportedMessageRole(role: message.Role)
}
Constructors
-
ApiError(message: String) -
RateLimited -
Timeout -
Cancelled -
InvalidResponse(detail: String) -
UnsupportedMessageRole(role: message.Role)