pub struct ToolEnv {
pub cwd: PathBuf,
pub runtime: Arc<RwLock<Runtime>>,
pub bin_dir: PathBuf,
}Expand description
What built-in tools share: the working directory, the session state and where helper binaries live.
Fields§
§cwd: PathBufWorking directory for relative paths and commands.
runtime: Arc<RwLock<Runtime>>Session state, updated by the session.
bin_dir: PathBufThe agent’s bin directory: prepended to PATH for commands, and where
rg and fd are installed when missing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ToolEnv
impl Freeze for ToolEnv
impl RefUnwindSafe for ToolEnv
impl Send for ToolEnv
impl Sync for ToolEnv
impl Unpin for ToolEnv
impl UnsafeUnpin for ToolEnv
impl UnwindSafe for ToolEnv
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