pub struct RunShell {
pub root: PathBuf,
pub timeout: Duration,
pub max_output_bytes: usize,
}Fields§
§root: PathBuf§timeout: Duration§max_output_bytes: usizeImplementations§
Trait Implementations§
Source§impl Tool for RunShell
impl Tool for RunShell
fn spec(&self) -> ToolSpec
fn execute<'life0, 'async_trait>(
&'life0 self,
args: Value,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Whether this tool only reads data without side effects.
Default: false (conservative). Override to true for read-only tools.
Auto Trait Implementations§
impl Freeze for RunShell
impl RefUnwindSafe for RunShell
impl Send for RunShell
impl Sync for RunShell
impl Unpin for RunShell
impl UnsafeUnpin for RunShell
impl UnwindSafe for RunShell
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