pub struct WorkspaceTools { /* private fields */ }Expand description
Built-in filesystem tools with validated, session-stable definitions.
Implementations§
Source§impl WorkspaceTools
impl WorkspaceTools
Sourcepub fn new(
config: WorkspaceToolsConfig,
) -> Result<Self, WorkspaceToolConfigError>
pub fn new( config: WorkspaceToolsConfig, ) -> Result<Self, WorkspaceToolConfigError>
Validates paths, resource limits, and both built-in tool definitions.
Sourcepub fn into_registered_tools(self) -> Vec<RegisteredTool>
pub fn into_registered_tools(self) -> Vec<RegisteredTool>
Returns the bounded file-read tool (text and images) with parallel-safe admission.
Sourcepub fn into_registered_tools_with_patch(self) -> Vec<RegisteredTool>
pub fn into_registered_tools_with_patch(self) -> Vec<RegisteredTool>
Adds opt-in patches with explicit write admission and proposal evidence.
Trait Implementations§
Source§impl Clone for WorkspaceTools
impl Clone for WorkspaceTools
Auto Trait Implementations§
impl !RefUnwindSafe for WorkspaceTools
impl !UnwindSafe for WorkspaceTools
impl Forget for WorkspaceTools
impl Freeze for WorkspaceToolswhere
*const ArcInner<WorkspaceToolState> is !null: Freeze,
PhantomData<ArcInner<WorkspaceToolState>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for WorkspaceTools
impl Send for WorkspaceTools
impl Sync for WorkspaceTools
impl Unpin for WorkspaceTools
impl UnsafeUnpin for WorkspaceToolswhere
*const ArcInner<WorkspaceToolState> is !null: UnsafeUnpin,
PhantomData<ArcInner<WorkspaceToolState>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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