pub struct E2BSandboxTool { /* private fields */ }Expand description
E2B sandbox tool for executing code in isolated cloud environments.
Creates an ephemeral E2B sandbox per invocation, executes the provided code, then destroys the sandbox. Supports Python, JavaScript, and Bash.
Implementations§
Trait Implementations§
Source§impl Tool for E2BSandboxTool
impl Tool for E2BSandboxTool
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn parameters(&self) -> Option<Value>
fn call<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn as_tool_definition(&self) -> ToolDefinition
Auto Trait Implementations§
impl Freeze for E2BSandboxTool
impl !RefUnwindSafe for E2BSandboxTool
impl Send for E2BSandboxTool
impl Sync for E2BSandboxTool
impl Unpin for E2BSandboxTool
impl UnsafeUnpin for E2BSandboxTool
impl !UnwindSafe for E2BSandboxTool
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