pub struct ContextRequest {
pub items: Vec<EvidenceItem>,
pub max_tokens: u32,
pub deduplicate: bool,
}Fields§
§items: Vec<EvidenceItem>§max_tokens: u32§deduplicate: boolRemove lines that a higher-priority item already carried.
Evidence assembled from several tools overlaps: a search hit and a symbol excerpt quote the same source lines, and each tool budgets its own answer without knowing what the others returned. Only the layer holding every fragment can see the repetition, so this is the one saving that is not available inside any single tool.
Conservative by construction: only substantial lines are compared, the first (highest-priority) occurrence is always the one kept, and an item that would be emptied is left untouched instead.
Trait Implementations§
Source§impl Clone for ContextRequest
impl Clone for ContextRequest
Source§impl Debug for ContextRequest
impl Debug for ContextRequest
Source§impl<'de> Deserialize<'de> for ContextRequest
impl<'de> Deserialize<'de> for ContextRequest
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 ContextRequest
impl PartialEq for ContextRequest
Source§impl Serialize for ContextRequest
impl Serialize for ContextRequest
impl StructuralPartialEq for ContextRequest
Auto Trait Implementations§
impl Freeze for ContextRequest
impl RefUnwindSafe for ContextRequest
impl Send for ContextRequest
impl Sync for ContextRequest
impl Unpin for ContextRequest
impl UnsafeUnpin for ContextRequest
impl UnwindSafe for ContextRequest
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