pub struct BashOutput {
pub exit_code: Option<i32>,
pub stdout: String,
pub stderr: String,
}Expand description
Result of shell command execution.
Fields§
§exit_code: Option<i32>Exit code from the command (None if killed by timeout).
stdout: StringStandard output from the command.
stderr: StringStandard error output from the command.
Implementations§
Source§impl BashOutput
impl BashOutput
Sourcepub fn format_output(&self) -> ToolOutput
pub fn format_output(&self) -> ToolOutput
Formats the bash output into a ToolOutput for LLM consumption.
Combines stdout, stderr (with [stderr] label), and non-zero exit codes
into a single formatted string.
Trait Implementations§
Source§impl Clone for BashOutput
impl Clone for BashOutput
Source§fn clone(&self) -> BashOutput
fn clone(&self) -> BashOutput
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 BashOutput
impl Debug for BashOutput
Source§impl Serialize for BashOutput
impl Serialize for BashOutput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BashOutput
impl RefUnwindSafe for BashOutput
impl Send for BashOutput
impl Sync for BashOutput
impl Unpin for BashOutput
impl UnwindSafe for BashOutput
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