pub struct SubagentOptions {
pub max_depth: usize,
pub max_delegations: usize,
}Expand description
Options for the TaskTool.
Fields§
§max_depth: usizeMaximum delegation depth (chain length). The top-level agent runs
at depth 0; its task calls run children at depth 1; their task calls
run at depth 2; etc. A task call at depth >= max_depth returns a
depth-exceeded error result.
max_delegations: usizeMaximum total number of delegations across the whole tree (shared
atomic counter). Bounds exponential fan-out: a parent issuing many
parallel task calls, each spawning children that do the same, is
capped regardless of depth or width. A task call that would exceed
the remaining budget returns a budget-exceeded error result.
Trait Implementations§
Source§impl Clone for SubagentOptions
impl Clone for SubagentOptions
Source§fn clone(&self) -> SubagentOptions
fn clone(&self) -> SubagentOptions
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 SubagentOptions
Source§impl Debug for SubagentOptions
impl Debug for SubagentOptions
Auto Trait Implementations§
impl Freeze for SubagentOptions
impl RefUnwindSafe for SubagentOptions
impl Send for SubagentOptions
impl Sync for SubagentOptions
impl Unpin for SubagentOptions
impl UnsafeUnpin for SubagentOptions
impl UnwindSafe for SubagentOptions
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