pub enum AiError {
NoModel,
EmptyPrompt,
Sdk(Error),
}Expand description
Plugin / call errors (maps AISDK failures and missing install config).
Variants§
NoModel
No default model was configured on crate::Ai / crate::AiClient.
EmptyPrompt
Missing prompt/messages on a bound call.
Sdk(Error)
Upstream AISDK error.
Trait Implementations§
Source§impl Error for AiError
impl Error for AiError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl IntoResponse for AiError
impl IntoResponse for AiError
fn into_response(self) -> Response
Auto Trait Implementations§
impl !RefUnwindSafe for AiError
impl !UnwindSafe for AiError
impl Freeze for AiError
impl Send for AiError
impl Sync for AiError
impl Unpin for AiError
impl UnsafeUnpin for AiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more