pub enum SubagentError {
Show 18 variants
BlankTask,
TaskTooLong,
ZeroMaxModelTurns,
ExceedsConfiguredMaxModelTurns {
requested: u32,
maximum: u32,
},
BelowConfiguredMinModelTurns {
requested: u32,
minimum: u32,
},
ZeroMinModelTurns,
MinExceedsMaxModelTurns {
minimum: u32,
maximum: u32,
},
InvalidScopePath {
path: String,
},
OverlappingWriteScope {
first_index: usize,
second_index: usize,
path: String,
},
CapabilityExpansion {
field: &'static str,
value: String,
},
ZeroMaxThreads,
ZeroMaxDepth,
InvalidContextFileRef {
value: String,
},
TooManyContextFiles {
maximum: usize,
},
ZeroTimeoutSecs,
ZeroForegroundBudgetSecs,
ZeroMaxTotalTokens,
InvalidRoleName {
role: String,
},
}Expand description
Validation errors for subagent task contracts and configuration.
Variants§
BlankTask
The delegated task text was blank.
TaskTooLong
The delegated task text exceeded the 16 KiB UTF-8 limit.
ZeroMaxModelTurns
The delegated task has no allowed model turns.
ExceedsConfiguredMaxModelTurns
The delegated task requested more turns than the configured runtime limit.
BelowConfiguredMinModelTurns
The delegated task requested fewer turns than the configured minimum.
ZeroMinModelTurns
The configured minimum is not a valid value.
MinExceedsMaxModelTurns
The configured minimum is greater than the configured maximum.
InvalidScopePath
A path scope was not a normalized workspace-relative path.
OverlappingWriteScope
Two child tasks may write the same path tree.
Fields
CapabilityExpansion
A child task requested a capability outside the parent’s effective envelope.
Fields
ZeroMaxThreads
The subagent runtime was configured with no possible concurrency.
ZeroMaxDepth
The subagent runtime was configured with no child depth.
InvalidContextFileRef
A context file reference was invalid or outside workspace-relative rules.
TooManyContextFiles
Too many context file references were supplied for one child task.
ZeroTimeoutSecs
A child timeout_secs value was zero.
ZeroForegroundBudgetSecs
A foreground wait budget value was zero.
ZeroMaxTotalTokens
A child max_total_tokens value was zero.
InvalidRoleName
A child role name contained invalid characters.
Trait Implementations§
Source§impl Clone for SubagentError
impl Clone for SubagentError
Source§impl Debug for SubagentError
impl Debug for SubagentError
Source§impl Display for SubagentError
impl Display for SubagentError
impl Eq for SubagentError
Source§impl Error for SubagentError
impl Error for SubagentError
1.30.0 · 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()
Source§impl PartialEq for SubagentError
impl PartialEq for SubagentError
impl StructuralPartialEq for SubagentError
Auto Trait Implementations§
impl Forget for SubagentError
impl Freeze for SubagentError
impl Move for SubagentError
impl RefUnwindSafe for SubagentError
impl Send for SubagentError
impl Sync for SubagentError
impl Unpin for SubagentError
impl UnsafeUnpin for SubagentError
impl UnwindSafe for SubagentError
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
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
key and return true if they are equal.