pub struct ToolDependencyAssembly {
pub dependencies: DependencyStore,
pub legacy_context: Option<AgentContextHandle>,
pub context_mutations: ContextMutationHandles,
pub authorized_context_capabilities: BTreeSet<String>,
}Expand description
Dependencies and mutation cells assembled for one tool invocation.
Fields§
§dependencies: DependencyStoreTyped dependencies exposed to the tool.
legacy_context: Option<AgentContextHandle>Full compatibility context handle, present only for the Legacy profile.
context_mutations: ContextMutationHandlesIsolated mutable context capability cells.
Context capability names authorized for this invocation.
Implementations§
Source§impl ToolDependencyAssembly
impl ToolDependencyAssembly
Sourcepub fn apply_to(&self, context: &mut AgentContext)
pub fn apply_to(&self, context: &mut AgentContext)
Apply tool-owned context changes back to the runtime context.
Trait Implementations§
Source§impl Clone for ToolDependencyAssembly
impl Clone for ToolDependencyAssembly
Source§fn clone(&self) -> ToolDependencyAssembly
fn clone(&self) -> ToolDependencyAssembly
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 ToolDependencyAssembly
impl !UnwindSafe for ToolDependencyAssembly
impl Freeze for ToolDependencyAssembly
impl Send for ToolDependencyAssembly
impl Sync for ToolDependencyAssembly
impl Unpin for ToolDependencyAssembly
impl UnsafeUnpin for ToolDependencyAssembly
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