Skip to main content

Module query

Module query 

Source
Expand description

Read-only queries across sessions for analytics and long-term learning.

Structs§

FactRecord
A single grounded fact drawn from a session’s memory envelope.
MemorySearchResult
One result returned from a memory search.
SessionSummary
Lightweight summary of a single session, read from its manifest.json.

Functions§

default_search_max_results
Return the configured default for max_results in search queries.
default_search_min_score
Return the configured default for min_score in search queries.
query_facts
Cross-session long-term-learning query: collect grounded facts from every session’s derived memory envelope. This is how the agent learns across sessions without loading any history into context.
recent_sessions
List up to n most-recently-updated sessions.
search_memory
Cross-session memory search: scan every session’s derived memory envelope for facts matching query. Returns up to max_results results with score >= min_score, sorted by descending relevance.