pub struct ExecTool { /* private fields */ }Implementations§
Source§impl ExecTool
impl ExecTool
Sourcepub fn with_container(
self,
limits: ContainerLimits,
runtime: ContainerRuntime,
) -> Self
pub fn with_container( self, limits: ContainerLimits, runtime: ContainerRuntime, ) -> Self
Uses an explicitly admitted daemon and frozen limits for program and shell calls. The daemon must be discovered by the host, rather than by a second configuration path.
Sourcepub fn confined(self, confinement: Confined) -> Self
pub fn confined(self, confinement: Confined) -> Self
Chooses an execution boundary before the tool is admitted to a run. The disclosure and actual placement always read the same confinement.
Sourcepub fn python_only(self) -> Self
pub fn python_only(self) -> Self
Offers the existing WASI guest while refusing sandbox program and shell calls.
Trait Implementations§
Source§impl Tool for ExecTool
impl Tool for ExecTool
fn meta(&self) -> &ToolMeta
Source§fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
fn invoke(&self, call: &ToolCall) -> Result<ToolOutcome, AxError>
Fail-closed identity: a call whose name differs from
meta().name
must return E_INVALID_ARGS, never route silently.Source§fn subject(&self, _call: &ToolCall) -> Result<GateSubject, AxError>
fn subject(&self, _call: &ToolCall) -> Result<GateSubject, AxError>
What this call is about, read by the grammar this tool already
parses its arguments with. Read more
Auto Trait Implementations§
impl !Freeze for ExecTool
impl !RefUnwindSafe for ExecTool
impl !UnwindSafe for ExecTool
impl Send for ExecTool
impl Sync for ExecTool
impl Unpin for ExecTool
impl UnsafeUnpin for ExecTool
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