Skip to main content

query_rows

Function query_rows 

Source
pub fn query_rows(
    query: &str,
    limit: usize,
    live: &BTreeSet<String>,
    include_tool_matches: bool,
) -> Result<Vec<WikiRow>>
Expand description

One page of the index, newest first or best match first.

live is the set of session ids this daemon still holds, which is what decides whether a Mjolnir row names a session the user can simply resume. Only top-level sessions are answered. include_tool_matches keeps tool-only hits for agent history; the resume list requires conversational matches. Runs SQLite work, so callers on the async runtime wrap it in spawn_blocking.