pub struct ContextMutationHandles { /* private fields */ }Expand description
Runtime-owned collection of isolated context mutation cells for one tool call.
Implementations§
Source§impl ContextMutationHandles
impl ContextMutationHandles
Sourcepub fn from_context(context: &AgentContext) -> Self
pub fn from_context(context: &AgentContext) -> Self
Capture only the domains that narrow handles can mutate.
Sourcepub fn insert_grants(
&self,
dependencies: &mut DependencyStore,
requested: &BTreeSet<String>,
)
pub fn insert_grants( &self, dependencies: &mut DependencyStore, requested: &BTreeSet<String>, )
Insert runtime-recognized capability handles into a dependency store.
Sourcepub fn apply_to(
&self,
context: &mut AgentContext,
authorized: &BTreeSet<String>,
)
pub fn apply_to( &self, context: &mut AgentContext, authorized: &BTreeSet<String>, )
Apply only explicitly authorized mutation domains back to the runtime context.
Trait Implementations§
Source§impl Clone for ContextMutationHandles
impl Clone for ContextMutationHandles
Source§fn clone(&self) -> ContextMutationHandles
fn clone(&self) -> ContextMutationHandles
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 Freeze for ContextMutationHandles
impl RefUnwindSafe for ContextMutationHandles
impl Send for ContextMutationHandles
impl Sync for ContextMutationHandles
impl Unpin for ContextMutationHandles
impl UnsafeUnpin for ContextMutationHandles
impl UnwindSafe for ContextMutationHandles
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