pub enum MicroagentError {
ExecutionFailed {
subtask_id: String,
reason: String,
},
Timeout {
subtask_id: String,
timeout_ms: u64,
},
InvalidInput {
subtask_id: String,
reason: String,
},
OutputParseFailed {
subtask_id: String,
reason: String,
},
ProviderError(String),
ContextTooLarge {
size: u32,
limit: u32,
},
MissingDependency {
subtask_id: String,
dependency: String,
},
}Expand description
Errors related to microagent execution
Variants§
ExecutionFailed
Subtask execution failed.
Timeout
Subtask timed out.
InvalidInput
Invalid input for subtask.
OutputParseFailed
Output parsing failed for subtask.
ProviderError(String)
Provider communication error.
ContextTooLarge
Context too large for microagent.
MissingDependency
Missing dependency result.
Trait Implementations§
Source§impl Debug for MicroagentError
impl Debug for MicroagentError
Source§impl Display for MicroagentError
impl Display for MicroagentError
Source§impl Error for MicroagentError
impl Error for MicroagentError
1.30.0 · 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<MicroagentError> for MdapError
impl From<MicroagentError> for MdapError
Source§fn from(source: MicroagentError) -> Self
fn from(source: MicroagentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MicroagentError
impl RefUnwindSafe for MicroagentError
impl Send for MicroagentError
impl Sync for MicroagentError
impl Unpin for MicroagentError
impl UnsafeUnpin for MicroagentError
impl UnwindSafe for MicroagentError
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