#[non_exhaustive]pub enum SynwireErrorKind {
Model,
Prompt,
Parse,
Embedding,
VectorStore,
Tool,
RetryExhausted,
Serialization,
Graph,
Credential,
Other,
}Expand description
Discriminant enum for matching errors without payload.
Used by RetryConfig and with_fallbacks to specify which
error categories to handle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Model
Model invocation error.
Prompt
Prompt formatting error.
Parse
Output parsing error.
Embedding
Embedding error.
VectorStore
Vector store error.
Tool
Tool invocation error.
RetryExhausted
Retry exhausted.
Serialization
Serialization error.
Graph
Graph execution error.
Credential
Credential error.
Other
Other error.
Trait Implementations§
Source§impl Clone for SynwireErrorKind
impl Clone for SynwireErrorKind
Source§fn clone(&self) -> SynwireErrorKind
fn clone(&self) -> SynwireErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SynwireErrorKind
impl Debug for SynwireErrorKind
Source§impl Hash for SynwireErrorKind
impl Hash for SynwireErrorKind
Source§impl PartialEq for SynwireErrorKind
impl PartialEq for SynwireErrorKind
impl Copy for SynwireErrorKind
impl Eq for SynwireErrorKind
impl StructuralPartialEq for SynwireErrorKind
Auto Trait Implementations§
impl Freeze for SynwireErrorKind
impl RefUnwindSafe for SynwireErrorKind
impl Send for SynwireErrorKind
impl Sync for SynwireErrorKind
impl Unpin for SynwireErrorKind
impl UnsafeUnpin for SynwireErrorKind
impl UnwindSafe for SynwireErrorKind
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