pub struct SidecarSearchResult {
pub matches: Vec<SidecarSearchMatch>,
pub total_matches: usize,
pub truncated: bool,
pub unresolvable: usize,
}Expand description
The complete result of a sidecar_search call. Bounded by construction
(SPEC.md TR-1 fix pass): at most MAX_MATCHES snippets, each at most
SNIPPET_MAX_BYTES, and the whole serialized form at most
MAX_RESULT_BYTES — a broad query over megabytes of hidden content can
never blow the result back up to the size the reductions saved, and the
truncation is honest, structured JSON (never a mid-structure byte chop).
Fields§
§matches: Vec<SidecarSearchMatch>The matches kept (first MAX_MATCHES found, then byte-capped).
total_matches: usizeHow many matches the query REALLY had, including ones dropped by the
caps — truncated && total_matches > matches.len() tells the model
to narrow its query.
truncated: boolTrue when any match was dropped by MAX_MATCHES/MAX_RESULT_BYTES.
unresolvable: usizeReductions in the log whose content could not currently be resolved
(e.g. their address no longer exists after Agent::rewind_to). They
were skipped, not fatal — one stale log entry never disables search
over the rest.
Trait Implementations§
Source§impl Clone for SidecarSearchResult
impl Clone for SidecarSearchResult
Source§fn clone(&self) -> SidecarSearchResult
fn clone(&self) -> SidecarSearchResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SidecarSearchResult
impl Debug for SidecarSearchResult
Source§impl<'de> Deserialize<'de> for SidecarSearchResult
impl<'de> Deserialize<'de> for SidecarSearchResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SidecarSearchResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SidecarSearchResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SidecarSearchResult
Source§impl PartialEq for SidecarSearchResult
impl PartialEq for SidecarSearchResult
Source§impl Serialize for SidecarSearchResult
impl Serialize for SidecarSearchResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for SidecarSearchResult
Auto Trait Implementations§
impl Freeze for SidecarSearchResult
impl RefUnwindSafe for SidecarSearchResult
impl Send for SidecarSearchResult
impl Sync for SidecarSearchResult
impl Unpin for SidecarSearchResult
impl UnsafeUnpin for SidecarSearchResult
impl UnwindSafe for SidecarSearchResult
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.