pub struct SliceHit {
pub inline_ref: String,
pub hash: String,
pub start_line: usize,
pub end_line: usize,
pub total_lines: usize,
pub token_cost: u32,
}Expand description
A ranged re-read of content the model already has, returned by
CacheManager::check_slice_with_meta. The agent read a file in
full earlier and is now reading lines start_line..=end_line of it.
Fields§
§inline_ref: String§ref:<hash_prefix>:L<start>-<end>§, or a plain §ref:<hash_prefix>§
when the range covers the whole original.
hash: StringFull 64-hex SHA-256 of the containing original.
start_line: usize§end_line: usize§total_lines: usizeLine count of the containing original.
token_cost: u32Approximate token cost of the reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SliceHit
impl RefUnwindSafe for SliceHit
impl Send for SliceHit
impl Sync for SliceHit
impl Unpin for SliceHit
impl UnsafeUnpin for SliceHit
impl UnwindSafe for SliceHit
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