pub struct MakeSubagentOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> MakeSubagentOptionsBuilder<S>
impl<S: State> MakeSubagentOptionsBuilder<S>
Sourcepub fn build(self) -> MakeSubagentOptionswhere
S: IsComplete,
pub fn build(self) -> MakeSubagentOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn builder(
self,
value: impl Into<ChildAgentBuilder>,
) -> MakeSubagentOptionsBuilder<SetBuilder<S>>where
S::Builder: IsUnset,
pub fn builder(
self,
value: impl Into<ChildAgentBuilder>,
) -> MakeSubagentOptionsBuilder<SetBuilder<S>>where
S::Builder: IsUnset,
Optional (Some / Option setters). 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.
Sourcepub fn maybe_builder(
self,
value: Option<impl Into<ChildAgentBuilder>>,
) -> MakeSubagentOptionsBuilder<SetBuilder<S>>where
S::Builder: IsUnset,
pub fn maybe_builder(
self,
value: Option<impl Into<ChildAgentBuilder>>,
) -> MakeSubagentOptionsBuilder<SetBuilder<S>>where
S::Builder: IsUnset,
Optional (Some / Option setters). 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.
Sourcepub fn presets(
self,
presets: impl IntoIterator<Item = (impl Into<String>, Preset)>,
) -> MakeSubagentOptionsBuilder<SetPresets<S>>where
S::Presets: IsUnset,
pub fn presets(
self,
presets: impl IntoIterator<Item = (impl Into<String>, Preset)>,
) -> MakeSubagentOptionsBuilder<SetPresets<S>>where
S::Presets: IsUnset,
Optional (Some / Option setters).
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.
Sourcepub fn maybe_presets(
self,
value: Option<impl IntoIterator<Item = (impl Into<String>, Preset)>>,
) -> MakeSubagentOptionsBuilder<SetPresets<S>>where
S::Presets: IsUnset,
pub fn maybe_presets(
self,
value: Option<impl IntoIterator<Item = (impl Into<String>, Preset)>>,
) -> MakeSubagentOptionsBuilder<SetPresets<S>>where
S::Presets: IsUnset,
Optional (Some / Option setters).
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.
Sourcepub fn default_preset(
self,
value: impl Into<String>,
) -> MakeSubagentOptionsBuilder<SetDefaultPreset<S>>where
S::DefaultPreset: IsUnset,
pub fn default_preset(
self,
value: impl Into<String>,
) -> MakeSubagentOptionsBuilder<SetDefaultPreset<S>>where
S::DefaultPreset: IsUnset,
Sourcepub fn maybe_default_preset(
self,
value: Option<impl Into<String>>,
) -> MakeSubagentOptionsBuilder<SetDefaultPreset<S>>where
S::DefaultPreset: IsUnset,
pub fn maybe_default_preset(
self,
value: Option<impl Into<String>>,
) -> MakeSubagentOptionsBuilder<SetDefaultPreset<S>>where
S::DefaultPreset: IsUnset,
Sourcepub fn instructions(
self,
value: Axis,
) -> MakeSubagentOptionsBuilder<SetInstructions<S>>where
S::Instructions: IsUnset,
pub fn instructions(
self,
value: Axis,
) -> MakeSubagentOptionsBuilder<SetInstructions<S>>where
S::Instructions: IsUnset,
Sourcepub fn maybe_instructions(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetInstructions<S>>where
S::Instructions: IsUnset,
pub fn maybe_instructions(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetInstructions<S>>where
S::Instructions: IsUnset,
Sourcepub fn tools(self, value: Axis) -> MakeSubagentOptionsBuilder<SetTools<S>>where
S::Tools: IsUnset,
pub fn tools(self, value: Axis) -> MakeSubagentOptionsBuilder<SetTools<S>>where
S::Tools: IsUnset,
Sourcepub fn maybe_tools(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetTools<S>>where
S::Tools: IsUnset,
pub fn maybe_tools(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetTools<S>>where
S::Tools: IsUnset,
Sourcepub fn model(self, value: Axis) -> MakeSubagentOptionsBuilder<SetModel<S>>where
S::Model: IsUnset,
pub fn model(self, value: Axis) -> MakeSubagentOptionsBuilder<SetModel<S>>where
S::Model: IsUnset,
Sourcepub fn maybe_model(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetModel<S>>where
S::Model: IsUnset,
pub fn maybe_model(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetModel<S>>where
S::Model: IsUnset,
Sourcepub fn context(self, value: Axis) -> MakeSubagentOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
pub fn context(self, value: Axis) -> MakeSubagentOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
Sourcepub fn maybe_context(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
pub fn maybe_context(
self,
value: Option<Axis>,
) -> MakeSubagentOptionsBuilder<SetContext<S>>where
S::Context: IsUnset,
Sourcepub fn max_depth(
self,
value: usize,
) -> MakeSubagentOptionsBuilder<SetMaxDepth<S>>where
S::MaxDepth: IsUnset,
pub fn max_depth(
self,
value: usize,
) -> MakeSubagentOptionsBuilder<SetMaxDepth<S>>where
S::MaxDepth: IsUnset,
Optional (Some / Option setters).
The most nested delegation levels; DEFAULT_SUBAGENT_MAX_DEPTH when absent.
Sourcepub fn maybe_max_depth(
self,
value: Option<usize>,
) -> MakeSubagentOptionsBuilder<SetMaxDepth<S>>where
S::MaxDepth: IsUnset,
pub fn maybe_max_depth(
self,
value: Option<usize>,
) -> MakeSubagentOptionsBuilder<SetMaxDepth<S>>where
S::MaxDepth: IsUnset,
Optional (Some / Option setters).
The most nested delegation levels; DEFAULT_SUBAGENT_MAX_DEPTH when absent.
Sourcepub fn name(
self,
value: impl Into<String>,
) -> MakeSubagentOptionsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<String>,
) -> MakeSubagentOptionsBuilder<SetName<S>>where
S::Name: IsUnset,
Sourcepub fn maybe_name(
self,
value: Option<impl Into<String>>,
) -> MakeSubagentOptionsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<String>>,
) -> MakeSubagentOptionsBuilder<SetName<S>>where
S::Name: IsUnset,
Sourcepub fn description(
self,
value: impl Into<String>,
) -> MakeSubagentOptionsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> MakeSubagentOptionsBuilder<SetDescription<S>>where
S::Description: IsUnset,
Optional (Some / Option setters).
The tool description; DEFAULT_SUBAGENT_DESCRIPTION when absent.
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> MakeSubagentOptionsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> MakeSubagentOptionsBuilder<SetDescription<S>>where
S::Description: IsUnset,
Optional (Some / Option setters).
The tool description; DEFAULT_SUBAGENT_DESCRIPTION when absent.
Auto Trait Implementations§
impl<S = Empty> !RefUnwindSafe for MakeSubagentOptionsBuilder<S>
impl<S = Empty> !UnwindSafe for MakeSubagentOptionsBuilder<S>
impl<S> Freeze for MakeSubagentOptionsBuilder<S>
impl<S> Send for MakeSubagentOptionsBuilder<S>
impl<S> Sync for MakeSubagentOptionsBuilder<S>
impl<S> Unpin for MakeSubagentOptionsBuilder<S>
impl<S> UnsafeUnpin for MakeSubagentOptionsBuilder<S>
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
§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