Coverage for astrocyte/pipeline/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-04 05:24 +0000

1"""Astrocyte built-in intelligence pipeline. 

2 

3Active when ``provider_tier = "storage"`` — the framework owns retain/recall 

4over storage adapters. Steps aside when ``provider_tier = "engine"`` so a 

5full-stack engine provider (Mem0, Zep, Mystique) owns the pipeline instead. 

6See docs/_design/built-in-pipeline.md. 

7""" 

8 

9from astrocyte.pipeline.extraction import ( 

10 BUILTIN_EXTRACTION_PROFILES, 

11 ChunkingDecision, 

12 PreparedRetainInput, 

13 extraction_profile_for_source, 

14 merged_extraction_profiles, 

15 merged_user_and_builtin_profiles, 

16 prepare_retain_input, 

17 resolve_retain_chunking, 

18 resolve_retain_fact_type, 

19) 

20from astrocyte.pipeline.tasks import ( 

21 COMPILE_BANK, 

22 COMPILE_PERSONA_PAGE, 

23 INDEX_WIKI_PAGE_VECTOR, 

24 LINT_WIKI_PAGE, 

25 NORMALIZE_TEMPORAL_FACTS, 

26 PROJECT_ENTITY_EDGES, 

27 InMemoryTaskBackend, 

28 MemoryTask, 

29 MemoryTaskDispatcher, 

30 MemoryTaskWorker, 

31 TaskHandlerContext, 

32) 

33 

34try: 

35 from astrocyte.pipeline.pgqueuer_tasks import PgQueuerMemoryTaskQueue 

36except ImportError: # pragma: no cover - optional worker extra 

37 PgQueuerMemoryTaskQueue = None # type: ignore[assignment] 

38 

39__all__ = [ 

40 "BUILTIN_EXTRACTION_PROFILES", 

41 "ChunkingDecision", 

42 "PreparedRetainInput", 

43 "COMPILE_BANK", 

44 "COMPILE_PERSONA_PAGE", 

45 "INDEX_WIKI_PAGE_VECTOR", 

46 "LINT_WIKI_PAGE", 

47 "NORMALIZE_TEMPORAL_FACTS", 

48 "PROJECT_ENTITY_EDGES", 

49 "InMemoryTaskBackend", 

50 "MemoryTask", 

51 "MemoryTaskDispatcher", 

52 "MemoryTaskWorker", 

53 "PgQueuerMemoryTaskQueue", 

54 "TaskHandlerContext", 

55 "extraction_profile_for_source", 

56 "merged_extraction_profiles", 

57 "merged_user_and_builtin_profiles", 

58 "prepare_retain_input", 

59 "resolve_retain_chunking", 

60 "resolve_retain_fact_type", 

61]