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 more