pub struct AgentRoute { /* private fields */ }Expand description
One explicitly configured route from a caller to a child agent.
Implementations§
Source§impl AgentRoute
impl AgentRoute
Sourcepub fn new(descriptor: AgentDescriptor, agent: Arc<Agent>) -> Self
pub fn new(descriptor: AgentDescriptor, agent: Arc<Agent>) -> Self
Creates a route whose child starts with no capabilities.
Sourcepub fn with_capabilities(self, capabilities: CapabilitySet) -> Self
pub fn with_capabilities(self, capabilities: CapabilitySet) -> Self
Sets the exact capabilities requested for the child run.
Invocation still rejects any grant not held by the parent.
Sourcepub const fn descriptor(&self) -> &AgentDescriptor
pub const fn descriptor(&self) -> &AgentDescriptor
Returns the model-facing and policy-facing route contract.
Sourcepub const fn capabilities(&self) -> &CapabilitySet
pub const fn capabilities(&self) -> &CapabilitySet
Returns the exact child capability grant.
Trait Implementations§
Source§impl Clone for AgentRoute
impl Clone for AgentRoute
Source§fn clone(&self) -> AgentRoute
fn clone(&self) -> AgentRoute
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AgentRoute
impl !UnwindSafe for AgentRoute
impl Freeze for AgentRoute
impl Send for AgentRoute
impl Sync for AgentRoute
impl Unpin for AgentRoute
impl UnsafeUnpin for AgentRoute
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