#[non_exhaustive]pub enum ErrorComponent {
Show 14 variants
Agent,
Model,
Tool,
Session,
Artifact,
Memory,
Graph,
Realtime,
Code,
Server,
Auth,
Guardrail,
Eval,
Deploy,
}Expand description
The subsystem that produced the error — the origin, not the boundary it surfaces through.
Choose the variant matching where the failure actually happened, not which trait boundary returned it. For example:
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Agent
Error originated in agent logic.
Model
Error originated in model/LLM interaction.
Tool
Error originated in tool execution.
Session
Error originated in session management.
Artifact
Error originated in artifact storage.
Memory
Error originated in memory/RAG operations.
Graph
Error originated in graph workflow execution.
Realtime
Error originated in realtime audio/video streaming.
Code
Error originated in code execution.
Server
Error originated in the HTTP server.
Auth
Error originated in authentication/authorization.
Guardrail
Error originated in guardrail validation.
Eval
Error originated in evaluation framework.
Deploy
Error originated in deployment operations.
Trait Implementations§
Source§impl Clone for ErrorComponent
impl Clone for ErrorComponent
Source§fn clone(&self) -> ErrorComponent
fn clone(&self) -> ErrorComponent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ErrorComponent
impl Debug for ErrorComponent
Source§impl<'de> Deserialize<'de> for ErrorComponent
impl<'de> Deserialize<'de> for ErrorComponent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorComponent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorComponent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for ErrorComponent
impl Display for ErrorComponent
Source§impl Hash for ErrorComponent
impl Hash for ErrorComponent
Source§impl PartialEq for ErrorComponent
impl PartialEq for ErrorComponent
Source§fn eq(&self, other: &ErrorComponent) -> bool
fn eq(&self, other: &ErrorComponent) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ErrorComponent
impl Serialize for ErrorComponent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for ErrorComponent
impl Eq for ErrorComponent
impl StructuralPartialEq for ErrorComponent
Auto Trait Implementations§
impl Freeze for ErrorComponent
impl RefUnwindSafe for ErrorComponent
impl Send for ErrorComponent
impl Sync for ErrorComponent
impl Unpin for ErrorComponent
impl UnsafeUnpin for ErrorComponent
impl UnwindSafe for ErrorComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.