pub struct ToolResultEntry<'a> {
pub tool_name: &'a str,
pub text: &'a str,
pub index: usize,
}Expand description
A tool result entry before compression, used as input to compress_batch.
The index field is used as a deterministic tiebreaker when two results have
equal token counts during batch budget enforcement (lower index trimmed first).
Fields§
§tool_name: &'a strTool name for tracing and logging.
text: &'a strRaw tool result text.
index: usizePosition in the original tool call list. Used as tiebreaker in batch trimming.
Auto Trait Implementations§
impl<'a> Freeze for ToolResultEntry<'a>
impl<'a> RefUnwindSafe for ToolResultEntry<'a>
impl<'a> Send for ToolResultEntry<'a>
impl<'a> Sync for ToolResultEntry<'a>
impl<'a> Unpin for ToolResultEntry<'a>
impl<'a> UnsafeUnpin for ToolResultEntry<'a>
impl<'a> UnwindSafe for ToolResultEntry<'a>
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