Struct SubAgentSpawn
pub struct SubAgentSpawn {
pub parent_alias: String,
pub parent_policy: Arc<SecurityPolicy>,
pub parent_allowed_agent_aliases: HashSet<String>,
}Expand description
Builder for a SubAgent spawn. The caller resolves a parent agent
from the loaded config; Self::build applies any narrowing
overrides and validates the result.
Fields§
§parent_alias: String§parent_policy: Arc<SecurityPolicy>§parent_allowed_agent_aliases: HashSet<String>Implementations§
Source§impl SubAgentSpawn
impl SubAgentSpawn
pub fn for_agent(config: &Config, agent_alias: &str) -> Result<Self>
pub fn for_agent_with_policy( config: &Config, agent_alias: &str, parent_policy: Arc<SecurityPolicy>, ) -> Result<Self>
pub fn build(self, overrides: SubAgentOverrides) -> Result<SubAgentContext>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SubAgentSpawn
impl !RefUnwindSafe for SubAgentSpawn
impl Send for SubAgentSpawn
impl Sync for SubAgentSpawn
impl Unpin for SubAgentSpawn
impl UnsafeUnpin for SubAgentSpawn
impl !UnwindSafe for SubAgentSpawn
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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