Coverage for node / src / stigmem_node / routes / recall / __init__.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-25 01:49 +0000

1"""Hybrid recall endpoint — Spec-07-Recall-Pipeline and Spec-X11-Recall-Graph.""" 

2 

3from __future__ import annotations 

4 

5from ...settings import settings # noqa: F401 

6from .as_of import _recall_as_of_impl # noqa: F401 

7from .common import ( # noqa: F401 

8 _estimate_tokens, 

9 _fetch_facts_by_ids, 

10 _now_iso, 

11 _recency_score, 

12 _write_recall_audit, 

13 logger, 

14 router, 

15) 

16from .graph import _MAX_GRAPH_ENTITIES, _MAX_SEED_ENTITIES, _graph_expand # noqa: F401 

17from .lexical import _fts_query, _lexical_search, _like_search # noqa: F401 

18from .orchestration import ( # noqa: F401 

19 _MAX_CANDIDATES, 

20 _build_card_for_entity, 

21 _exclude_card_owned, 

22 _expand_graph_neighbours, 

23 _gather_direct_matches, 

24 _handle_as_of_recall, 

25 _recall_impl, 

26 _set_recall_span_attrs, 

27 _try_card_fast_path, 

28 _validate_recall_request, 

29 recall, 

30) 

31from .ranking import _greedy_pack, _score_candidates # noqa: F401 

32from .vector import _semantic_search # noqa: F401 

33 

34__all__ = [ 

35 "_MAX_CANDIDATES", 

36 "_MAX_GRAPH_ENTITIES", 

37 "_MAX_SEED_ENTITIES", 

38 "_build_card_for_entity", 

39 "_estimate_tokens", 

40 "_exclude_card_owned", 

41 "_expand_graph_neighbours", 

42 "_fetch_facts_by_ids", 

43 "_fts_query", 

44 "_gather_direct_matches", 

45 "_graph_expand", 

46 "_greedy_pack", 

47 "_handle_as_of_recall", 

48 "_lexical_search", 

49 "_like_search", 

50 "_now_iso", 

51 "_recall_as_of_impl", 

52 "_recall_impl", 

53 "_recency_score", 

54 "_score_candidates", 

55 "_semantic_search", 

56 "_set_recall_span_attrs", 

57 "_try_card_fast_path", 

58 "_validate_recall_request", 

59 "_write_recall_audit", 

60 "logger", 

61 "recall", 

62 "router", 

63 "settings", 

64]