pub struct BashExecutionFields {
pub command: String,
pub output: String,
pub exit_code: Option<i64>,
pub cancelled: bool,
pub truncated: bool,
pub full_output_path: Option<String>,
pub timestamp: i64,
pub exclude_from_context: Option<bool>,
}Expand description
Inputs for BashExecutionMessage::from_fields.
Mirrors every field of BashExecutionMessage except the wire-role
discriminant, which the constructor sets. Callers construct one of these
when they cannot reach the private role field directly (i.e. from outside
this module), then hand it to BashExecutionMessage::from_fields to
produce the message.
Fields§
§command: StringShell command that was executed.
output: StringCaptured command output (possibly truncated).
exit_code: Option<i64>Process exit code when the command finished; absent when cancelled or otherwise unavailable.
cancelled: boolWhether the command was cancelled before completion.
truncated: boolWhether Self::output is a truncated view of the full stream.
full_output_path: Option<String>Path to the full output spill file when truncated.
timestamp: i64Unix timestamp in milliseconds.
exclude_from_context: Option<bool>When true, this message is excluded from LLM context (!! prefix).
Trait Implementations§
Source§impl Clone for BashExecutionFields
impl Clone for BashExecutionFields
Source§fn clone(&self) -> BashExecutionFields
fn clone(&self) -> BashExecutionFields
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BashExecutionFields
impl RefUnwindSafe for BashExecutionFields
impl Send for BashExecutionFields
impl Sync for BashExecutionFields
impl Unpin for BashExecutionFields
impl UnsafeUnpin for BashExecutionFields
impl UnwindSafe for BashExecutionFields
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more