pub struct BashToolOptions {
pub command_prefix: Option<String>,
pub default_timeout: Option<f64>,
}Expand description
Options for create_bash_tool. Mirrors TS BashToolOptions.
Fields§
§command_prefix: Option<String>Prepended to the command (separated by \n) before execution.
default_timeout: Option<f64>Fallback timeout in seconds applied when the model doesn’t pass one.
pi has no default, but a model that forgets timeout can hang the run
forever (reported as “卡住”) — rpi injects this at the harness build
site. A model-supplied timeout still wins.
Trait Implementations§
Source§impl Clone for BashToolOptions
impl Clone for BashToolOptions
Source§fn clone(&self) -> BashToolOptions
fn clone(&self) -> BashToolOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BashToolOptions
impl Debug for BashToolOptions
Source§impl Default for BashToolOptions
impl Default for BashToolOptions
Source§fn default() -> BashToolOptions
fn default() -> BashToolOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BashToolOptions
impl RefUnwindSafe for BashToolOptions
impl Send for BashToolOptions
impl Sync for BashToolOptions
impl Unpin for BashToolOptions
impl UnsafeUnpin for BashToolOptions
impl UnwindSafe for BashToolOptions
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