pub enum ChildPermissionMode {
Full,
None,
PerSpawn,
}Expand description
Permission mode for spawned child agents.
Controls whether sub-agents run with full tool access or are restricted by
the parent’s ToolPolicy. The mode is resolved at
the runtime layer on every spawn, so it cannot be bypassed by the LLM.
Variants§
Full
Child agents have full permission — every tool auto-approves.
This matches the historical behaviour (children carried no tool policy), so it is the default to avoid surprising existing users.
None
Child agents have no permission — the parent’s “dangerous tools” are
denied when the parent has a ToolPolicy; if
the parent has none, every tool is denied via DenyAllToolPolicy.
PerSpawn
The parent agent decides per-spawn via SpawnAgentArgs.full_permission.
Trait Implementations§
Source§impl Clone for ChildPermissionMode
impl Clone for ChildPermissionMode
Source§fn clone(&self) -> ChildPermissionMode
fn clone(&self) -> ChildPermissionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChildPermissionMode
Source§impl Debug for ChildPermissionMode
impl Debug for ChildPermissionMode
Source§impl Default for ChildPermissionMode
impl Default for ChildPermissionMode
Source§fn default() -> ChildPermissionMode
fn default() -> ChildPermissionMode
Returns the “default value” for a type. Read more
impl Eq for ChildPermissionMode
Source§impl PartialEq for ChildPermissionMode
impl PartialEq for ChildPermissionMode
impl StructuralPartialEq for ChildPermissionMode
Auto Trait Implementations§
impl Freeze for ChildPermissionMode
impl RefUnwindSafe for ChildPermissionMode
impl Send for ChildPermissionMode
impl Sync for ChildPermissionMode
impl Unpin for ChildPermissionMode
impl UnsafeUnpin for ChildPermissionMode
impl UnwindSafe for ChildPermissionMode
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
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§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.