pub struct BashTool { /* private fields */ }Expand description
Workspace-confined bounded shell executor.
Implementations§
Source§impl BashTool
impl BashTool
Sourcepub const fn new(workspace: WorkspaceRoot, config: BashConfig) -> Self
pub const fn new(workspace: WorkspaceRoot, config: BashConfig) -> Self
Creates a shell executor from explicit host-owned configuration.
Sourcepub fn workspace_resource() -> Result<ToolResource, ToolResourceError>
pub fn workspace_resource() -> Result<ToolResource, ToolResourceError>
Returns the workspace process resource declared by every invocation.
§Errors
Returns an error only if the static resource violates tool bounds.
Trait Implementations§
Source§impl ToolExecutor for BashTool
impl ToolExecutor for BashTool
Source§fn execute(
&self,
invocation: ValidatedToolInvocation,
cancellation: CancellationScope,
) -> BoxToolExecutionStream
fn execute( &self, invocation: ValidatedToolInvocation, cancellation: CancellationScope, ) -> BoxToolExecutionStream
Creates a lazy execution stream owned by the caller.
Source§fn preview(
&self,
_invocation: &ValidatedToolInvocation,
) -> Option<ToolPresentation>
fn preview( &self, _invocation: &ValidatedToolInvocation, ) -> Option<ToolPresentation>
Produces an optional, non-durable preview for one validated invocation. Read more
Auto Trait Implementations§
impl Freeze for BashTool
impl RefUnwindSafe for BashTool
impl Send for BashTool
impl Sync for BashTool
impl Unpin for BashTool
impl UnsafeUnpin for BashTool
impl UnwindSafe for BashTool
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