Enum ErrorComponent
Source 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:
- A code-execution timeout inside
python_code_tool.rs → Code
- An auth denial inside middleware →
Auth
- A missing API key detected in model config →
Model with InvalidInput
- A database write failure in session persistence →
Session
Error originated in agent logic.
Error originated in model/LLM interaction.
Error originated in tool execution.
Error originated in session management.
Error originated in artifact storage.
Error originated in memory/RAG operations.
Error originated in graph workflow execution.
Error originated in realtime audio/video streaming.
Error originated in code execution.
Error originated in the HTTP server.
Error originated in authentication/authorization.
Error originated in guardrail validation.
Error originated in evaluation framework.
Error originated in deployment operations.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Deserialize this value from the given Serde deserializer.
Read more
Formats the value using the given formatter.
Read more
Serialize this value into the given Serde serializer.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.