pub struct BashCompletedFrame {
pub frame_type: &'static str,
pub task_id: String,
pub session_id: String,
pub status: BgTaskStatus,
pub exit_code: Option<i32>,
pub command: String,
pub output_preview: String,
pub output_truncated: bool,
pub original_tokens: Option<u32>,
pub compressed_tokens: Option<u32>,
pub tokens_skipped: bool,
}Fields§
§frame_type: &'static str§task_id: String§session_id: String§status: BgTaskStatus§exit_code: Option<i32>§command: String§output_preview: StringTail of stdout+stderr (≤300 bytes), already decoded as lossy UTF-8.
Empty string when no output was captured. Used by plugins to inline
short results in the system-reminder so agents don’t need a follow-up
bash_status round-trip for typical short commands.
output_truncated: boolTrue when the task produced more output than output_preview shows
(rotated buffer, file > 300 bytes, etc). Plugins use this to render a
… prefix and signal that bash_status would return more.
original_tokens: Option<u32>Token count of raw stdout+stderr before compression. Omitted when the payload exceeded the 128 KiB per-stream tokenization cap.
compressed_tokens: Option<u32>Token count of the compressed completion payload. Omitted when raw tokenization was skipped due to the cap.
tokens_skipped: boolTrue when output exceeded the tokenization cap and was not measured.
Implementations§
Source§impl BashCompletedFrame
impl BashCompletedFrame
pub fn new( task_id: impl Into<String>, session_id: impl Into<String>, status: BgTaskStatus, exit_code: Option<i32>, command: impl Into<String>, output_preview: impl Into<String>, output_truncated: bool, original_tokens: Option<u32>, compressed_tokens: Option<u32>, tokens_skipped: bool, ) -> Self
Trait Implementations§
Source§impl Clone for BashCompletedFrame
impl Clone for BashCompletedFrame
Source§fn clone(&self) -> BashCompletedFrame
fn clone(&self) -> BashCompletedFrame
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 BashCompletedFrame
impl Debug for BashCompletedFrame
Auto Trait Implementations§
impl Freeze for BashCompletedFrame
impl RefUnwindSafe for BashCompletedFrame
impl Send for BashCompletedFrame
impl Sync for BashCompletedFrame
impl Unpin for BashCompletedFrame
impl UnsafeUnpin for BashCompletedFrame
impl UnwindSafe for BashCompletedFrame
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
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>
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 more