clsplusplus 4.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. clsplusplus/__init__.py +31 -0
  2. clsplusplus/api.py +1596 -0
  3. clsplusplus/auth.py +74 -0
  4. clsplusplus/cli.py +715 -0
  5. clsplusplus/client.py +462 -0
  6. clsplusplus/config.py +116 -0
  7. clsplusplus/cost_model.py +51 -0
  8. clsplusplus/demo_llm.py +133 -0
  9. clsplusplus/demo_llm_calls.py +100 -0
  10. clsplusplus/demo_local.py +515 -0
  11. clsplusplus/embeddings.py +52 -0
  12. clsplusplus/idempotency.py +66 -0
  13. clsplusplus/integration_service.py +256 -0
  14. clsplusplus/jwt_utils.py +39 -0
  15. clsplusplus/local_routes.py +781 -0
  16. clsplusplus/main.py +21 -0
  17. clsplusplus/memory_cycle.py +216 -0
  18. clsplusplus/memory_phase.py +3541 -0
  19. clsplusplus/memory_service.py +1323 -0
  20. clsplusplus/metrics.py +184 -0
  21. clsplusplus/middleware.py +325 -0
  22. clsplusplus/models.py +430 -0
  23. clsplusplus/permissions.py +54 -0
  24. clsplusplus/plasticity.py +148 -0
  25. clsplusplus/rate_limit.py +53 -0
  26. clsplusplus/rbac_service.py +86 -0
  27. clsplusplus/reconsolidation.py +71 -0
  28. clsplusplus/sleep_cycle.py +109 -0
  29. clsplusplus/stores/__init__.py +13 -0
  30. clsplusplus/stores/base.py +43 -0
  31. clsplusplus/stores/integration_store.py +648 -0
  32. clsplusplus/stores/l0_working_buffer.py +103 -0
  33. clsplusplus/stores/l1_indexing_store.py +427 -0
  34. clsplusplus/stores/l2_schema_graph.py +231 -0
  35. clsplusplus/stores/l3_deep_recess.py +182 -0
  36. clsplusplus/stores/l3_postgres.py +183 -0
  37. clsplusplus/stores/rbac_store.py +327 -0
  38. clsplusplus/stores/user_store.py +255 -0
  39. clsplusplus/stripe_service.py +136 -0
  40. clsplusplus/temporal.py +613 -0
  41. clsplusplus/test_suite.py +587 -0
  42. clsplusplus/tiers.py +109 -0
  43. clsplusplus/tracer.py +226 -0
  44. clsplusplus/usage.py +130 -0
  45. clsplusplus/user_embeddings.py +1636 -0
  46. clsplusplus/user_service.py +256 -0
  47. clsplusplus/webhook_dispatcher.py +229 -0
  48. clsplusplus-4.0.0.dist-info/METADATA +262 -0
  49. clsplusplus-4.0.0.dist-info/RECORD +53 -0
  50. clsplusplus-4.0.0.dist-info/WHEEL +5 -0
  51. clsplusplus-4.0.0.dist-info/entry_points.txt +2 -0
  52. clsplusplus-4.0.0.dist-info/licenses/LICENSE +201 -0
  53. clsplusplus-4.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,31 @@
1
+ """CLS++ — Memory that thinks like a brain.
2
+
3
+ from clsplusplus import Brain
4
+
5
+ brain = Brain("alice")
6
+ brain.learn("I work at Google")
7
+ brain.ask("Where do I work?") # → ["I work at Google"]
8
+
9
+ Or as module-level functions:
10
+
11
+ import clsplusplus as mem
12
+ mem.learn("alice", "Prefers dark mode")
13
+ mem.ask("alice", "What theme?")
14
+ """
15
+
16
+ from __future__ import annotations
17
+
18
+ __version__ = "1.5.0"
19
+
20
+ __all__ = ["Brain", "learn", "ask", "context", "forget", "CLS", "CLSClient", "__version__"]
21
+
22
+
23
+ def __getattr__(name: str):
24
+ from clsplusplus.client import Brain, learn, ask, context, forget, CLS, CLSClient, MemoriesClient
25
+ _map = {
26
+ "Brain": Brain, "learn": learn, "ask": ask, "context": context,
27
+ "forget": forget, "CLS": CLS, "CLSClient": CLSClient, "MemoriesClient": MemoriesClient,
28
+ }
29
+ if name in _map:
30
+ return _map[name]
31
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")