pub struct ToolContext {
pub working_directory: Option<PathBuf>,
pub environment_variables: HashMap<String, String>,
pub use_system_path: bool,
pub options: HashMap<String, String>,
}
Expand description
Context for tool execution
Fields§
§working_directory: Option<PathBuf>
Working directory for the tool
environment_variables: HashMap<String, String>
Environment variables to set
use_system_path: bool
Whether to use system PATH instead of vx-managed tools
options: HashMap<String, String>
Additional execution options
Implementations§
Source§impl ToolContext
impl ToolContext
Trait Implementations§
Source§impl Clone for ToolContext
impl Clone for ToolContext
Source§fn clone(&self) -> ToolContext
fn clone(&self) -> ToolContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToolContext
impl Debug for ToolContext
Source§impl Default for ToolContext
impl Default for ToolContext
Source§fn default() -> ToolContext
fn default() -> ToolContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToolContext
impl RefUnwindSafe for ToolContext
impl Send for ToolContext
impl Sync for ToolContext
impl Unpin for ToolContext
impl UnwindSafe for ToolContext
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