pub struct SubAgents { /* private fields */ }Expand description
Sub-agents for AgentBuilder::subagents: the model gets delegate, which
runs a sub-agent on a task with its own step budget and a fork of the caller’s
tools, approvals, and jail. A specialist is a named sub-agent with its own
instructions, tool allowlist, approval mode, model, and skills, defined in a
Markdown file with frontmatter (agent86’s .agent86/agents/<name>.md format;
see docs/subagents.md). A specialist’s authority only narrows its caller’s.
Adjacent specialist delegations run in parallel, each on its own thread, so a
custom Provider must implement fresh; one with isolation: worktree runs
in a git worktree and hands back its diff.
Implementations§
Source§impl SubAgents
impl SubAgents
Sourcepub fn new() -> Self
pub fn new() -> Self
Delegation two levels deep, 8 steps per sub-agent, 3 in parallel, with
agent86’s built-in specialists (researcher, reviewer, planner).
Sourcepub fn max_depth(self, depth: u32) -> Self
pub fn max_depth(self, depth: u32) -> Self
How deep delegation may nest; the main agent is depth 0.
Sourcepub fn max_steps(self, steps: u32) -> Self
pub fn max_steps(self, steps: u32) -> Self
Each sub-agent’s step budget, kept at or below the turn’s.
Sourcepub fn max_parallel(self, parallel: u32) -> Self
pub fn max_parallel(self, parallel: u32) -> Self
How many adjacent specialist delegations run at once (1 to 8).
Sourcepub fn without_built_ins(self) -> Self
pub fn without_built_ins(self) -> Self
Leave out agent86’s built-in specialists.
Sourcepub fn specialists_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn specialists_dir(self, dir: impl Into<PathBuf>) -> Self
Add the specialists defined in dir (<name>.md files), replacing a
built-in or an earlier directory’s of the same name. They are trusted as
the caller’s own, so never pass a directory from a repository the user did
not write: its files become prompt text and tool scopes. A file that does
not parse is skipped, and said so in Agent::notes.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SubAgents
impl Freeze for SubAgents
impl Move for SubAgents
impl RefUnwindSafe for SubAgents
impl Send for SubAgents
impl Sync for SubAgents
impl Unpin for SubAgents
impl UnsafeUnpin for SubAgents
impl UnwindSafe for SubAgents
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more