#[non_exhaustive]pub enum KitError {
Show 15 variants
Config {
agent: String,
message: String,
},
MissingKey {
vendor: String,
env: String,
},
Catalog {
agent: String,
source: CatalogError,
hint: String,
},
Persona(PersonaError),
Agent(AgentError),
Tool(ToolError),
Workflow(WorkflowError),
Graph(GraphError),
Store(CoreError),
Context(ContextError),
Route(RouteError),
Local(LocalError),
Failed {
run_id: RunId,
reason: String,
},
Paused {
run_id: RunId,
reason: PauseReason,
},
Retries {
run_id: RunId,
attempts: u32,
last_error: String,
},
}Expand description
Every failure of the kit: builder settings, catalog and key problems, and the wrapped engine errors, plus run outcomes that are not an answer. Messages name the agent and the fix; they never hold an API key.
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.
Config
MissingKey
Catalog
Persona(PersonaError)
Agent(AgentError)
Tool(ToolError)
Workflow(WorkflowError)
Graph(GraphError)
Store(CoreError)
Context(ContextError)
Route(RouteError)
Local(LocalError)
Failed
Paused
Retries
Trait Implementations§
Source§impl Error for KitError
impl Error for KitError
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 From<AgentError> for KitError
impl From<AgentError> for KitError
Source§fn from(source: AgentError) -> Self
fn from(source: AgentError) -> Self
Converts to this type from the input type.
Source§impl From<ContextError> for KitError
impl From<ContextError> for KitError
Source§fn from(source: ContextError) -> Self
fn from(source: ContextError) -> Self
Converts to this type from the input type.
Source§impl From<GraphError> for KitError
impl From<GraphError> for KitError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl From<LocalError> for KitError
impl From<LocalError> for KitError
Source§fn from(source: LocalError) -> Self
fn from(source: LocalError) -> Self
Converts to this type from the input type.
Source§impl From<PersonaError> for KitError
impl From<PersonaError> for KitError
Source§fn from(source: PersonaError) -> Self
fn from(source: PersonaError) -> Self
Converts to this type from the input type.
Source§impl From<RouteError> for KitError
impl From<RouteError> for KitError
Source§fn from(err: RouteError) -> Self
fn from(err: RouteError) -> Self
Converts to this type from the input type.
Source§impl From<WorkflowError> for KitError
impl From<WorkflowError> for KitError
Source§fn from(source: WorkflowError) -> Self
fn from(source: WorkflowError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for KitError
impl Freeze for KitError
impl Move for KitError
impl RefUnwindSafe for KitError
impl Send for KitError
impl Sync for KitErrorwhere
RawVecInner: Sync,
impl Unpin for KitError
impl UnsafeUnpin for KitError
impl UnwindSafe for KitError
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