pub struct NoOpSandbox;Expand description
A no-op sandbox that passes tool execution through directly.
Use this when no sandboxing is needed.
Trait Implementations§
Source§impl Sandbox for NoOpSandbox
impl Sandbox for NoOpSandbox
Source§async fn execute_tool(
&self,
tool: &dyn ToolDyn,
input: Value,
ctx: &ToolContext,
) -> Result<ToolOutput, SandboxError>
async fn execute_tool( &self, tool: &dyn ToolDyn, input: Value, ctx: &ToolContext, ) -> Result<ToolOutput, SandboxError>
Execute a tool within the sandbox.
Auto Trait Implementations§
impl Freeze for NoOpSandbox
impl RefUnwindSafe for NoOpSandbox
impl Send for NoOpSandbox
impl Sync for NoOpSandbox
impl Unpin for NoOpSandbox
impl UnsafeUnpin for NoOpSandbox
impl UnwindSafe for NoOpSandbox
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