pub struct MakeSubagentOptions {
pub builder: Option<ChildAgentBuilder>,
pub presets: Option<Vec<(String, Preset)>>,
pub default_preset: Option<String>,
pub instructions: Option<Axis>,
pub tools: Option<Axis>,
pub model: Option<Axis>,
pub context: Option<Axis>,
pub max_depth: Option<usize>,
pub name: Option<String>,
pub description: Option<String>,
}Expand description
Options for make_subagent (MakeSubagentOptions).
Fields§
§builder: Option<ChildAgentBuilder>Turns a resolved spec into the child agent; called again with the same spec when an interrupted child resumes. When absent the child is built from the calling agent: its model, tools and sandbox. The parent’s hooks and plugins are not passed to the child; tools a plugin added to the parent are inherited like any other tool but run without the plugin’s hooks. Pass a builder for a child that needs them.
presets: Option<Vec<(String, Preset)>>Named roles the model selects with agent_type, in the order the schema lists them; a
repeated name replaces the earlier preset in its place. The generalist when absent.
default_preset: Option<String>The preset used when the model omits agent_type; the first preset when absent.
instructions: Option<Axis>§tools: Option<Axis>§model: Option<Axis>§context: Option<Axis>How much of the parent’s conversation the child sees: Fixed or Choice over
none, all and no_tools; Fixed("none") when absent.
max_depth: Option<usize>The most nested delegation levels; DEFAULT_SUBAGENT_MAX_DEPTH when absent.
name: Option<String>The tool name; subagent when absent.
description: Option<String>The tool description; DEFAULT_SUBAGENT_DESCRIPTION when absent.
Implementations§
Source§impl MakeSubagentOptions
impl MakeSubagentOptions
Sourcepub fn builder() -> MakeSubagentOptionsBuilder
pub fn builder() -> MakeSubagentOptionsBuilder
Create an instance of MakeSubagentOptions using the builder syntax
Trait Implementations§
Source§impl Clone for MakeSubagentOptions
impl Clone for MakeSubagentOptions
Source§impl Debug for MakeSubagentOptions
impl Debug for MakeSubagentOptions
Auto Trait Implementations§
impl !RefUnwindSafe for MakeSubagentOptions
impl !UnwindSafe for MakeSubagentOptions
impl Freeze for MakeSubagentOptions
impl Send for MakeSubagentOptions
impl Sync for MakeSubagentOptions
impl Unpin for MakeSubagentOptions
impl UnsafeUnpin for MakeSubagentOptions
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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