pub struct PersistentShellTool { /* private fields */ }Expand description
A long-lived shell whose state (working directory, environment variables,
shell functions) persists across calls — unlike the one-shot BashTool.
Also supports write_stdin to feed raw input to the shell, for driving
interactive programs. This is the analog of Codex’s persistent exec session.
Trait Implementations§
Source§impl Default for PersistentShellTool
impl Default for PersistentShellTool
Source§impl Tool for PersistentShellTool
impl Tool for PersistentShellTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
The built-in description. May be overridden via
crate::Config.Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema describing the tool’s input object.
Auto Trait Implementations§
impl !Freeze for PersistentShellTool
impl !RefUnwindSafe for PersistentShellTool
impl !UnwindSafe for PersistentShellTool
impl Send for PersistentShellTool
impl Sync for PersistentShellTool
impl Unpin for PersistentShellTool
impl UnsafeUnpin for PersistentShellTool
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