Skip to main content

Module router

Module router 

Source

Structs§

HeuristicRouter
Heuristic-based memory router.
HybridRouter
Hybrid router: heuristic-first, escalates to LLM when confidence is low.
LlmRouter
LLM-based memory router.
RoutingDecision
Routing decision with confidence and optional LLM reasoning.
TemporalRange
Resolved datetime boundaries for a temporal query.

Enums§

MemoryRoute
Classification of which memory backend(s) to query.

Traits§

AsyncMemoryRouter
Async extension for LLM-capable routers.
MemoryRouter
Decides which memory backend(s) to query for a given input.

Functions§

classify_graph_subgraph
Classify a query into the MAGMA edge types to use for subgraph-scoped BFS retrieval.
parse_route_str
resolve_temporal_range
Resolve temporal keywords in query to a (after, before) datetime boundary pair.
strip_temporal_keywords
Strip matched temporal keywords from a query string before passing to FTS5.