pub struct ToolContext {
pub extension: ExtensionContext,
pub call_id: ToolCallId,
pub workspace: Arc<dyn WorkspaceFacade>,
pub interaction: Arc<dyn InteractionFacade>,
pub subagent: Arc<dyn SubagentFacade>,
}Fields§
§extension: ExtensionContext§call_id: ToolCallId§workspace: Arc<dyn WorkspaceFacade>§interaction: Arc<dyn InteractionFacade>§subagent: Arc<dyn SubagentFacade>Trait Implementations§
Source§impl Clone for ToolContext
impl Clone for ToolContext
Source§fn clone(&self) -> ToolContext
fn clone(&self) -> ToolContext
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 ToolContext
impl !UnwindSafe for ToolContext
impl Freeze for ToolContext
impl Send for ToolContext
impl Sync for ToolContext
impl Unpin for ToolContext
impl UnsafeUnpin for ToolContext
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