pub struct BashExecutionMessage {
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>,
/* private fields */
}Expand description
Message type for bash executions via the ! command.
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).
Implementations§
Source§impl BashExecutionMessage
impl BashExecutionMessage
Sourcepub fn from_fields(fields: BashExecutionFields) -> Self
pub fn from_fields(fields: BashExecutionFields) -> Self
Construct a bash-execution message from a BashExecutionFields record.
The wire role discriminant is fixed to bashExecution. The timestamp,
command, output, exit code, cancellation, truncation, spill path, and
exclude_from_context flag are taken verbatim from fields.
Trait Implementations§
Source§impl Clone for BashExecutionMessage
impl Clone for BashExecutionMessage
Source§fn clone(&self) -> BashExecutionMessage
fn clone(&self) -> BashExecutionMessage
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 BashExecutionMessage
impl Debug for BashExecutionMessage
Source§impl<'de> Deserialize<'de> for BashExecutionMessage
impl<'de> Deserialize<'de> for BashExecutionMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BashExecutionMessage
impl PartialEq for BashExecutionMessage
Source§impl Serialize for BashExecutionMessage
impl Serialize for BashExecutionMessage
impl StructuralPartialEq for BashExecutionMessage
Auto Trait Implementations§
impl Freeze for BashExecutionMessage
impl RefUnwindSafe for BashExecutionMessage
impl Send for BashExecutionMessage
impl Sync for BashExecutionMessage
impl Unpin for BashExecutionMessage
impl UnsafeUnpin for BashExecutionMessage
impl UnwindSafe for BashExecutionMessage
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.