pub enum SubagentRoleError {
InvalidRoleName {
role: String,
},
UnknownBaseRole {
role: String,
base: String,
},
UnknownRole {
role: String,
available: String,
},
DisabledRole {
role: String,
},
ZeroBudget {
role: String,
field: &'static str,
},
InvalidPromptFile {
role: String,
path: String,
reason: String,
},
}Expand description
Errors raised while validating or resolving subagent roles.
Variants§
InvalidRoleName
Role identifier is empty or contains unsupported characters.
UnknownBaseRole
Referenced base role does not exist.
UnknownRole
Spawn requested an unknown role.
DisabledRole
Spawn requested a role that is disabled via config or toggle.
ZeroBudget
Role turn budget or timeout was zero.
InvalidPromptFile
Prompt file could not be loaded safely from the workspace.
Trait Implementations§
Source§impl Clone for SubagentRoleError
impl Clone for SubagentRoleError
Source§impl Debug for SubagentRoleError
impl Debug for SubagentRoleError
Source§impl Display for SubagentRoleError
impl Display for SubagentRoleError
impl Eq for SubagentRoleError
Source§impl Error for SubagentRoleError
impl Error for SubagentRoleError
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 PartialEq for SubagentRoleError
impl PartialEq for SubagentRoleError
impl StructuralPartialEq for SubagentRoleError
Auto Trait Implementations§
impl Forget for SubagentRoleError
impl Freeze for SubagentRoleError
impl Move for SubagentRoleError
impl RefUnwindSafe for SubagentRoleError
impl Send for SubagentRoleError
impl Sync for SubagentRoleErrorwhere
RawVecInner: Sync,
impl Unpin for SubagentRoleError
impl UnsafeUnpin for SubagentRoleError
impl UnwindSafe for SubagentRoleError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.