pub enum MdapError {
Show 18 variants
Voting(VotingError),
RedFlag(RedFlagError),
Decomposition(DecompositionError),
Microagent(MicroagentError),
Composition(CompositionError),
Scaling(ScalingError),
Provider(String),
Config(MdapConfigError),
Io(Error),
Serialization(Error),
Semaphore(String),
TaskJoin(String),
Other(String),
ToolRecursionLimit {
depth: u32,
max_depth: u32,
},
ToolExecutionFailed {
tool: String,
reason: String,
},
ToolNotAllowed {
tool: String,
category: String,
},
ToolIntentParseFailed(String),
ConfigurationError(String),
}Expand description
Main error type for the MDAP system
Variants§
Voting(VotingError)
Voting error.
RedFlag(RedFlagError)
Red-flag validation error.
Decomposition(DecompositionError)
Decomposition error.
Microagent(MicroagentError)
Microagent execution error.
Composition(CompositionError)
Composition error.
Scaling(ScalingError)
Scaling law calculation error.
Provider(String)
AI provider error.
Config(MdapConfigError)
Configuration error.
Io(Error)
I/O error.
Serialization(Error)
Serialization error.
Semaphore(String)
Semaphore acquire error.
TaskJoin(String)
Task join error.
Other(String)
Catch-all error.
ToolRecursionLimit
Tool recursion limit reached.
ToolExecutionFailed
Tool execution failed.
ToolNotAllowed
Tool not allowed for this microagent.
ToolIntentParseFailed(String)
Tool intent parsing failed.
ConfigurationError(String)
General configuration error.
Implementations§
Source§impl MdapError
impl MdapError
Sourcepub fn to_user_string(&self) -> String
pub fn to_user_string(&self) -> String
Convert to a user-facing error string
Sourcepub fn is_user_error(&self) -> bool
pub fn is_user_error(&self) -> bool
Check if this is a user/configuration error vs system/runtime error
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if this error is retryable
Sourcepub fn is_tool_error(&self) -> bool
pub fn is_tool_error(&self) -> bool
Check if this is a tool-related error
Sourcepub fn should_restart_voting(&self) -> bool
pub fn should_restart_voting(&self) -> bool
Check if this error indicates the voting process should be restarted
Sourcepub fn is_red_flag(&self) -> bool
pub fn is_red_flag(&self) -> bool
Check if this error is a red-flag (should discard and resample)
Trait Implementations§
Source§impl Error for MdapError
impl Error for MdapError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()