pub struct BashToolBuilder { /* private fields */ }Expand description
Builder for configuring BashTool
Implementations§
Source§impl BashToolBuilder
impl BashToolBuilder
Sourcepub fn username(self, username: impl Into<String>) -> Self
pub fn username(self, username: impl Into<String>) -> Self
Set custom username for virtual identity
Sourcepub fn hostname(self, hostname: impl Into<String>) -> Self
pub fn hostname(self, hostname: impl Into<String>) -> Self
Set custom hostname for virtual identity
Sourcepub fn limits(self, limits: ExecutionLimits) -> Self
pub fn limits(self, limits: ExecutionLimits) -> Self
Set execution limits
Sourcepub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add an environment variable
Sourcepub fn builtin(self, name: impl Into<String>, builtin: Box<dyn Builtin>) -> Self
pub fn builtin(self, name: impl Into<String>, builtin: Box<dyn Builtin>) -> Self
Register a custom builtin command
Custom builtins extend the shell with domain-specific commands.
They will be documented in the tool’s help() output.
If the builtin implements Builtin::llm_hint, its hint will be
included in help() and system_prompt().
Trait Implementations§
Source§impl Default for BashToolBuilder
impl Default for BashToolBuilder
Source§fn default() -> BashToolBuilder
fn default() -> BashToolBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BashToolBuilder
impl !RefUnwindSafe for BashToolBuilder
impl Send for BashToolBuilder
impl Sync for BashToolBuilder
impl Unpin for BashToolBuilder
impl UnsafeUnpin for BashToolBuilder
impl !UnwindSafe for BashToolBuilder
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