dhee 2.0.0__tar.gz → 3.0.0__tar.gz
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.
- {dhee-2.0.0 → dhee-3.0.0}/PKG-INFO +32 -11
- {dhee-2.0.0 → dhee-3.0.0}/README.md +29 -8
- {dhee-2.0.0 → dhee-3.0.0}/dhee/__init__.py +17 -25
- {dhee-2.0.0 → dhee-3.0.0}/dhee/adapters/base.py +359 -13
- {dhee-2.0.0 → dhee-3.0.0}/dhee/benchmarks/arc_agi.py +2 -2
- {dhee-2.0.0 → dhee-3.0.0}/dhee/cli.py +17 -12
- {dhee-2.0.0 → dhee-3.0.0}/dhee/cli_config.py +4 -4
- {dhee-2.0.0 → dhee-3.0.0}/dhee/configs/base.py +4 -4
- {dhee-2.0.0 → dhee-3.0.0}/dhee/configs/presets.py +7 -7
- dhee-3.0.0/dhee/core/agi_loop.py +145 -0
- dhee-3.0.0/dhee/core/anchor_resolver.py +330 -0
- dhee-3.0.0/dhee/core/belief.py +715 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/buddhi.py +464 -208
- dhee-3.0.0/dhee/core/cognition_kernel.py +567 -0
- dhee-3.0.0/dhee/core/conflicts.py +238 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/consolidation.py +44 -8
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/contrastive.py +29 -0
- dhee-3.0.0/dhee/core/derived_store.py +1145 -0
- dhee-3.0.0/dhee/core/distillation.py +477 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/engram.py +8 -2
- dhee-3.0.0/dhee/core/episode.py +579 -0
- dhee-3.0.0/dhee/core/events.py +443 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/forgetting.py +6 -6
- dhee-3.0.0/dhee/core/fusion_v3.py +303 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/heuristic.py +45 -1
- dhee-3.0.0/dhee/core/intention.py +295 -0
- dhee-3.0.0/dhee/core/invalidation.py +248 -0
- dhee-3.0.0/dhee/core/jobs.py +477 -0
- dhee-3.0.0/dhee/core/lease_manager.py +256 -0
- dhee-3.0.0/dhee/core/pattern_detector.py +545 -0
- dhee-3.0.0/dhee/core/policy.py +913 -0
- dhee-3.0.0/dhee/core/promotion.py +316 -0
- dhee-3.0.0/dhee/core/read_model.py +327 -0
- dhee-3.0.0/dhee/core/session_tracker.py +380 -0
- dhee-3.0.0/dhee/core/storage.py +428 -0
- dhee-3.0.0/dhee/core/task_state.py +572 -0
- dhee-3.0.0/dhee/core/trigger.py +649 -0
- dhee-3.0.0/dhee/core/v3_health.py +193 -0
- dhee-3.0.0/dhee/core/v3_migration.py +238 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/mcp_server.py +33 -35
- {dhee-2.0.0 → dhee-3.0.0}/dhee/mcp_slim.py +17 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/__init__.py +1 -2
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/core.py +37 -12
- dhee-3.0.0/dhee/memory/cost.py +205 -0
- dhee-3.0.0/dhee/memory/episodic.py +331 -0
- dhee-3.0.0/dhee/memory/main.py +3133 -0
- dhee-3.0.0/dhee/memory/orchestration.py +854 -0
- dhee-3.0.0/dhee/memory/retrieval_helpers.py +303 -0
- dhee-3.0.0/dhee/memory/scene_profile.py +224 -0
- dhee-3.0.0/dhee/memory/scoping.py +211 -0
- dhee-3.0.0/dhee/memory/search_pipeline.py +735 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/smart.py +2 -2
- dhee-3.0.0/dhee/memory/vectors.py +194 -0
- dhee-3.0.0/dhee/memory/write_pipeline.py +1281 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/observability.py +1 -1
- {dhee-2.0.0 → dhee-3.0.0}/dhee/simple.py +109 -20
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/store.py +1 -1
- {dhee-2.0.0 → dhee-3.0.0}/dhee/vector_stores/memory.py +1 -1
- {dhee-2.0.0 → dhee-3.0.0}/dhee/vector_stores/sqlite_vec.py +1 -1
- {dhee-2.0.0 → dhee-3.0.0}/dhee/vector_stores/zvec_store.py +1 -1
- {dhee-2.0.0 → dhee-3.0.0}/dhee.egg-info/PKG-INFO +32 -11
- {dhee-2.0.0 → dhee-3.0.0}/dhee.egg-info/SOURCES.txt +39 -0
- {dhee-2.0.0 → dhee-3.0.0}/pyproject.toml +3 -3
- dhee-3.0.0/tests/test_auto_lifecycle.py +145 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_batch.py +1 -1
- dhee-3.0.0/tests/test_cognition_evals.py +1384 -0
- dhee-3.0.0/tests/test_cognition_kernel.py +543 -0
- dhee-3.0.0/tests/test_cognition_v3.py +1304 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_e2e_all_features.py +1 -1
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_locomo_plus_runner.py +13 -8
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_mcp_tools_slim.py +9 -2
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_openclaw.py +5 -1
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_orchestration_core.py +7 -7
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_parallel.py +3 -3
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_power_packages.py +7 -1
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_projects.py +1 -1
- dhee-3.0.0/tests/test_session_tracker.py +222 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_skills.py +2 -2
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_tasks.py +1 -1
- dhee-3.0.0/tests/test_v3_all_phases.py +820 -0
- dhee-3.0.0/tests/test_v3_jobs.py +706 -0
- dhee-3.0.0/tests/test_v3_storage.py +738 -0
- dhee-2.0.0/dhee/core/agi_loop.py +0 -212
- dhee-2.0.0/dhee/core/distillation.py +0 -232
- dhee-2.0.0/dhee/memory/main.py +0 -6103
- {dhee-2.0.0 → dhee-3.0.0}/LICENSE +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/adapters/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/adapters/autogen.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/adapters/langchain.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/adapters/openai_funcs.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/adapters/system_prompt.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/api/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/api/app.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/api/server.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/benchmarks/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/benchmarks/longmemeval.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/cli_mcp.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/cli_setup.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/configs/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/configs/active.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/alaya.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/answer_orchestration.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/category.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/code_exec_counter.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/cognition.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/conflict.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/decay.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/echo.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/engram_extractor.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/enrichment.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/episodic_index.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/evolution.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/fusion.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/graph.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/graph_evolution.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/intent.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/kernel.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/log_parser.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/meta_buddhi.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/metrics.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/profile.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/proposition_context.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/resolvers.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/retrieval.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/salience.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/samskara.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/scene.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/strategy.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/traces.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/core/viveka.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/db/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/db/sqlite.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/db/sqlite_backup.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/decay/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/edge/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/edge/edge_plugin.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/edge/edge_trainer.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/base.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/gemini.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/nvidia.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/ollama.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/openai.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/qwen.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/embeddings/simple.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/exceptions.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/hive/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/hive/hive_memory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/hive/sync.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/integrations/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/base.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/dhee.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/gemini.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/mock.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/nvidia.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/ollama.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/openai.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/llms/teacher_logger.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/base.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/parallel.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/projects.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/tasks.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/memory/utils.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/mini/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/mini/buddhi_mini.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/mini/progressive_trainer.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/mini/trace_segmenter.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/retrieval/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/retrieval/reranker.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/discovery.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/executor.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/hashing.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/miner.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/outcomes.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/schema.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/structure.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/skills/trajectory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/teaching/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/teaching/concepts.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/teaching/config.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/teaching/student_model.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/teaching/teaching_memory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/utils/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/utils/factory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/utils/math.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/utils/prompts.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/utils/repo_identity.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/vector_stores/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee/vector_stores/base.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee.egg-info/dependency_links.txt +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee.egg-info/entry_points.txt +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee.egg-info/requires.txt +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee.egg-info/top_level.txt +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/client.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/model/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/model/dhee_model.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/training/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/training/data_formatter.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/training/karma.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/training/nididhyasana.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/training/smrti.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dheeModel/training/train.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee_shared/__init__.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/dhee_shared/model_paths.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/setup.cfg +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_accel.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_accel_benchmark.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_backward_compat.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_core_memory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_cosine_similarity.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_dedup.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_deferred_enrichment.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_dhee_model_paths.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_distillation.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_forgetting.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_hashing.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_intent.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_log_parser.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_memory_types.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_migration.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_miner.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_presets.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_profile.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_query_cache.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_scene.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_smart_memory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_sqlite_connection_pool.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_sqlite_vec.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_structural.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_structured_resolution.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_traces.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_trajectory.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_unified_enrichment.py +0 -0
- {dhee-2.0.0 → dhee-3.0.0}/tests/test_zvec_store.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dhee
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Cognition layer for AI agents — persistent memory, performance tracking, and insight synthesis
|
|
5
5
|
Author: Sankhya AI Labs
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/Sankhya-AI/Dhee
|
|
@@ -10,7 +10,7 @@ Project-URL: Issues, https://github.com/Sankhya-AI/Dhee/issues
|
|
|
10
10
|
Project-URL: Documentation, https://github.com/Sankhya-AI/Dhee#readme
|
|
11
11
|
Project-URL: Changelog, https://github.com/Sankhya-AI/Dhee/blob/main/CHANGELOG.md
|
|
12
12
|
Keywords: memory-layer,cognition,mcp,self-evolving,hyperagent,ai,agents,plugin,llm,edge
|
|
13
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: License :: OSI Approved :: MIT License
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -79,7 +79,7 @@ Dynamic: license-file
|
|
|
79
79
|
<h3 align="center">The cognition layer that turns your agent into a HyperAgent.</h3>
|
|
80
80
|
|
|
81
81
|
<p align="center">
|
|
82
|
-
4
|
|
82
|
+
4-operation API. Deferred enrichment. Minimal hot-path cost.<br>
|
|
83
83
|
Your agent remembers, learns from outcomes, and predicts what you need next.
|
|
84
84
|
</p>
|
|
85
85
|
|
|
@@ -105,9 +105,17 @@ Most memory layers are glorified vector stores. Store text, retrieve text. Your
|
|
|
105
105
|
|
|
106
106
|
### Benchmark: LongMemEval
|
|
107
107
|
|
|
108
|
-
Dhee
|
|
108
|
+
Dhee is being evaluated on [LongMemEval](https://arxiv.org/abs/2410.10813), the standard benchmark for long-term conversational memory — temporal reasoning, multi-session aggregation, knowledge updates, and counterfactual tracking across 500+ questions. Preliminary results are promising.
|
|
109
109
|
|
|
110
|
-
>
|
|
110
|
+
> Full methodology and results will be published in the benchmark report.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Status
|
|
115
|
+
|
|
116
|
+
Dhee is **experimental software under active development**. The core 4-operation API (`remember`/`recall`/`context`/`checkpoint`) is stable. Advanced subsystems (belief tracking, policy extraction, episodic indexing) are functional but evolving.
|
|
117
|
+
|
|
118
|
+
Use it. Build on it. But know that internals will change.
|
|
111
119
|
|
|
112
120
|
---
|
|
113
121
|
|
|
@@ -165,7 +173,7 @@ Every interface — MCP, Python, CLI, JS — exposes the same 4 operations.
|
|
|
165
173
|
### `remember(content)`
|
|
166
174
|
Store a fact, preference, or observation.
|
|
167
175
|
|
|
168
|
-
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002). The memory is stored immediately. Echo enrichment (paraphrases, keywords, question-forms that make future recall dramatically better) is deferred to `checkpoint`.
|
|
176
|
+
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002 typical). The memory is stored immediately. Echo enrichment (paraphrases, keywords, question-forms that make future recall dramatically better) is deferred to `checkpoint`.
|
|
169
177
|
|
|
170
178
|
```python
|
|
171
179
|
d.remember("User prefers FastAPI over Flask")
|
|
@@ -175,7 +183,7 @@ d.remember("Project uses PostgreSQL 15 with pgvector")
|
|
|
175
183
|
### `recall(query)`
|
|
176
184
|
Search memory. Returns top-K results ranked by relevance.
|
|
177
185
|
|
|
178
|
-
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002). Pure vector search with echo-boosted re-ranking.
|
|
186
|
+
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002 typical). Pure vector search with echo-boosted re-ranking.
|
|
179
187
|
|
|
180
188
|
```python
|
|
181
189
|
results = d.recall("what database does the project use?")
|
|
@@ -233,6 +241,8 @@ d.checkpoint(
|
|
|
233
241
|
| `checkpoint` | 1 per ~10 memories | 0 | ~$0.001 |
|
|
234
242
|
| **Typical session** | **1** | **~15** | **~$0.004** |
|
|
235
243
|
|
|
244
|
+
> Costs assume OpenAI `text-embedding-3-small` at current pricing. Actual costs vary by provider, model, and configuration.
|
|
245
|
+
|
|
236
246
|
---
|
|
237
247
|
|
|
238
248
|
## How It Works (Under the Hood)
|
|
@@ -250,7 +260,7 @@ Stores memories in SQLite + a vector index. On the hot path (`remember`/`recall`
|
|
|
250
260
|
|
|
251
261
|
All of this happens in **1 LLM call per ~10 memories**. Not 4 calls per memory. One batched call.
|
|
252
262
|
|
|
253
|
-
Memory decays naturally (Ebbinghaus curve). Frequently accessed memories get promoted from short-term to long-term. Unused ones fade.
|
|
263
|
+
Memory decays naturally (Ebbinghaus curve). Frequently accessed memories get promoted from short-term to long-term. Unused ones fade. Storage naturally reduces over time as unused memories decay, unlike systems that keep everything indefinitely.
|
|
254
264
|
|
|
255
265
|
### Cognition Engine — Buddhi
|
|
256
266
|
|
|
@@ -265,6 +275,17 @@ Zero LLM calls on the hot path. Pure pattern matching + statistics. Persistence
|
|
|
265
275
|
|
|
266
276
|
Inspired by [Meta's DGM-Hyperagents](https://arxiv.org/abs/2603.19461) — agents that emergently develop persistent memory and performance tracking achieve self-accelerating improvement that transfers across domains. Dhee provides these capabilities as infrastructure.
|
|
267
277
|
|
|
278
|
+
#### Experimental Extensions
|
|
279
|
+
|
|
280
|
+
Beyond the core cognition engine, Dhee includes experimental subsystems that are functional but still evolving:
|
|
281
|
+
|
|
282
|
+
- **Belief store** — confidence-tracked facts with Bayesian updates and contradiction detection
|
|
283
|
+
- **Policy store** — outcome-linked condition→action rules extracted from task completions
|
|
284
|
+
- **Episodic indexing** — structured event extraction for temporal and aggregation queries
|
|
285
|
+
- **Contrastive pairs & heuristic distillation** — learning from what worked vs. what failed
|
|
286
|
+
|
|
287
|
+
These are surfaced through `context()` and `checkpoint()` automatically when enabled.
|
|
288
|
+
|
|
268
289
|
---
|
|
269
290
|
|
|
270
291
|
## Architecture
|
|
@@ -317,7 +338,7 @@ m.think("complex question requiring reasoning across memories")
|
|
|
317
338
|
```bash
|
|
318
339
|
pip install dhee[openai,mcp] # OpenAI (recommended, cheapest embeddings)
|
|
319
340
|
pip install dhee[gemini,mcp] # Google Gemini
|
|
320
|
-
pip install dhee[ollama,mcp] # Ollama (local,
|
|
341
|
+
pip install dhee[ollama,mcp] # Ollama (local inference, no API costs)
|
|
321
342
|
```
|
|
322
343
|
|
|
323
344
|
---
|
|
@@ -334,7 +355,7 @@ pytest
|
|
|
334
355
|
---
|
|
335
356
|
|
|
336
357
|
<p align="center">
|
|
337
|
-
<b>4
|
|
358
|
+
<b>4 operations. Deferred enrichment. Your agent remembers, learns, and predicts.</b>
|
|
338
359
|
<br><br>
|
|
339
360
|
<a href="https://github.com/Sankhya-AI/Dhee">GitHub</a> ·
|
|
340
361
|
<a href="https://pypi.org/project/dhee">PyPI</a> ·
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<h3 align="center">The cognition layer that turns your agent into a HyperAgent.</h3>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
4
|
|
10
|
+
4-operation API. Deferred enrichment. Minimal hot-path cost.<br>
|
|
11
11
|
Your agent remembers, learns from outcomes, and predicts what you need next.
|
|
12
12
|
</p>
|
|
13
13
|
|
|
@@ -33,9 +33,17 @@ Most memory layers are glorified vector stores. Store text, retrieve text. Your
|
|
|
33
33
|
|
|
34
34
|
### Benchmark: LongMemEval
|
|
35
35
|
|
|
36
|
-
Dhee
|
|
36
|
+
Dhee is being evaluated on [LongMemEval](https://arxiv.org/abs/2410.10813), the standard benchmark for long-term conversational memory — temporal reasoning, multi-session aggregation, knowledge updates, and counterfactual tracking across 500+ questions. Preliminary results are promising.
|
|
37
37
|
|
|
38
|
-
>
|
|
38
|
+
> Full methodology and results will be published in the benchmark report.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Status
|
|
43
|
+
|
|
44
|
+
Dhee is **experimental software under active development**. The core 4-operation API (`remember`/`recall`/`context`/`checkpoint`) is stable. Advanced subsystems (belief tracking, policy extraction, episodic indexing) are functional but evolving.
|
|
45
|
+
|
|
46
|
+
Use it. Build on it. But know that internals will change.
|
|
39
47
|
|
|
40
48
|
---
|
|
41
49
|
|
|
@@ -93,7 +101,7 @@ Every interface — MCP, Python, CLI, JS — exposes the same 4 operations.
|
|
|
93
101
|
### `remember(content)`
|
|
94
102
|
Store a fact, preference, or observation.
|
|
95
103
|
|
|
96
|
-
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002). The memory is stored immediately. Echo enrichment (paraphrases, keywords, question-forms that make future recall dramatically better) is deferred to `checkpoint`.
|
|
104
|
+
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002 typical). The memory is stored immediately. Echo enrichment (paraphrases, keywords, question-forms that make future recall dramatically better) is deferred to `checkpoint`.
|
|
97
105
|
|
|
98
106
|
```python
|
|
99
107
|
d.remember("User prefers FastAPI over Flask")
|
|
@@ -103,7 +111,7 @@ d.remember("Project uses PostgreSQL 15 with pgvector")
|
|
|
103
111
|
### `recall(query)`
|
|
104
112
|
Search memory. Returns top-K results ranked by relevance.
|
|
105
113
|
|
|
106
|
-
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002). Pure vector search with echo-boosted re-ranking.
|
|
114
|
+
**Hot path**: 0 LLM calls, 1 embedding (~$0.0002 typical). Pure vector search with echo-boosted re-ranking.
|
|
107
115
|
|
|
108
116
|
```python
|
|
109
117
|
results = d.recall("what database does the project use?")
|
|
@@ -161,6 +169,8 @@ d.checkpoint(
|
|
|
161
169
|
| `checkpoint` | 1 per ~10 memories | 0 | ~$0.001 |
|
|
162
170
|
| **Typical session** | **1** | **~15** | **~$0.004** |
|
|
163
171
|
|
|
172
|
+
> Costs assume OpenAI `text-embedding-3-small` at current pricing. Actual costs vary by provider, model, and configuration.
|
|
173
|
+
|
|
164
174
|
---
|
|
165
175
|
|
|
166
176
|
## How It Works (Under the Hood)
|
|
@@ -178,7 +188,7 @@ Stores memories in SQLite + a vector index. On the hot path (`remember`/`recall`
|
|
|
178
188
|
|
|
179
189
|
All of this happens in **1 LLM call per ~10 memories**. Not 4 calls per memory. One batched call.
|
|
180
190
|
|
|
181
|
-
Memory decays naturally (Ebbinghaus curve). Frequently accessed memories get promoted from short-term to long-term. Unused ones fade.
|
|
191
|
+
Memory decays naturally (Ebbinghaus curve). Frequently accessed memories get promoted from short-term to long-term. Unused ones fade. Storage naturally reduces over time as unused memories decay, unlike systems that keep everything indefinitely.
|
|
182
192
|
|
|
183
193
|
### Cognition Engine — Buddhi
|
|
184
194
|
|
|
@@ -193,6 +203,17 @@ Zero LLM calls on the hot path. Pure pattern matching + statistics. Persistence
|
|
|
193
203
|
|
|
194
204
|
Inspired by [Meta's DGM-Hyperagents](https://arxiv.org/abs/2603.19461) — agents that emergently develop persistent memory and performance tracking achieve self-accelerating improvement that transfers across domains. Dhee provides these capabilities as infrastructure.
|
|
195
205
|
|
|
206
|
+
#### Experimental Extensions
|
|
207
|
+
|
|
208
|
+
Beyond the core cognition engine, Dhee includes experimental subsystems that are functional but still evolving:
|
|
209
|
+
|
|
210
|
+
- **Belief store** — confidence-tracked facts with Bayesian updates and contradiction detection
|
|
211
|
+
- **Policy store** — outcome-linked condition→action rules extracted from task completions
|
|
212
|
+
- **Episodic indexing** — structured event extraction for temporal and aggregation queries
|
|
213
|
+
- **Contrastive pairs & heuristic distillation** — learning from what worked vs. what failed
|
|
214
|
+
|
|
215
|
+
These are surfaced through `context()` and `checkpoint()` automatically when enabled.
|
|
216
|
+
|
|
196
217
|
---
|
|
197
218
|
|
|
198
219
|
## Architecture
|
|
@@ -245,7 +266,7 @@ m.think("complex question requiring reasoning across memories")
|
|
|
245
266
|
```bash
|
|
246
267
|
pip install dhee[openai,mcp] # OpenAI (recommended, cheapest embeddings)
|
|
247
268
|
pip install dhee[gemini,mcp] # Google Gemini
|
|
248
|
-
pip install dhee[ollama,mcp] # Ollama (local,
|
|
269
|
+
pip install dhee[ollama,mcp] # Ollama (local inference, no API costs)
|
|
249
270
|
```
|
|
250
271
|
|
|
251
272
|
---
|
|
@@ -262,7 +283,7 @@ pytest
|
|
|
262
283
|
---
|
|
263
284
|
|
|
264
285
|
<p align="center">
|
|
265
|
-
<b>4
|
|
286
|
+
<b>4 operations. Deferred enrichment. Your agent remembers, learns, and predicts.</b>
|
|
266
287
|
<br><br>
|
|
267
288
|
<a href="https://github.com/Sankhya-AI/Dhee">GitHub</a> ·
|
|
268
289
|
<a href="https://pypi.org/project/dhee">PyPI</a> ·
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
"""dhee —
|
|
1
|
+
"""dhee — The cognition layer that turns any agent into a HyperAgent.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
- CategoryMem: Dynamic hierarchical category organization
|
|
6
|
-
- Universal Engram: Structured facts + context anchoring
|
|
7
|
-
- Cognition Engine: Memory-grounded recursive reasoning
|
|
8
|
-
- Prospective Scenes: Memory-driven future anticipation
|
|
3
|
+
4 operations. Deferred enrichment. Minimal hot-path cost.
|
|
4
|
+
Your agent remembers, learns from outcomes, and predicts what you need next.
|
|
9
5
|
|
|
10
|
-
Quick Start
|
|
11
|
-
from dhee import
|
|
12
|
-
m = Memory()
|
|
13
|
-
m.add("User prefers Python")
|
|
14
|
-
results = m.search("programming preferences")
|
|
6
|
+
Quick Start:
|
|
7
|
+
from dhee import Dhee
|
|
15
8
|
|
|
16
|
-
|
|
9
|
+
d = Dhee()
|
|
10
|
+
d.remember("User prefers dark mode")
|
|
11
|
+
d.recall("what theme does the user like?")
|
|
12
|
+
d.context("fixing auth bug")
|
|
13
|
+
d.checkpoint("Fixed it", what_worked="git blame first")
|
|
14
|
+
|
|
15
|
+
Memory Classes:
|
|
17
16
|
CoreMemory — lightweight: add/search/delete + decay (no LLM)
|
|
18
17
|
SmartMemory — + echo encoding, categories, knowledge graph (needs LLM)
|
|
19
|
-
FullMemory — + scenes, profiles,
|
|
18
|
+
FullMemory — + scenes, profiles, orchestration, cognition (everything)
|
|
20
19
|
Memory — alias for CoreMemory (lightest default)
|
|
21
20
|
"""
|
|
22
21
|
|
|
23
22
|
from dhee.memory.core import CoreMemory
|
|
24
23
|
from dhee.memory.smart import SmartMemory
|
|
25
24
|
from dhee.memory.main import FullMemory
|
|
26
|
-
from dhee.simple import
|
|
25
|
+
from dhee.simple import Dhee
|
|
27
26
|
from dhee.adapters.base import DheePlugin
|
|
28
27
|
from dhee.core.category import CategoryProcessor, Category, CategoryType, CategoryMatch
|
|
29
28
|
from dhee.core.echo import EchoProcessor, EchoDepth, EchoResult
|
|
@@ -32,16 +31,15 @@ from dhee.configs.base import MemoryConfig, FadeMemConfig, EchoMemConfig, Catego
|
|
|
32
31
|
# Default: CoreMemory (lightest, zero-config)
|
|
33
32
|
Memory = CoreMemory
|
|
34
33
|
|
|
35
|
-
__version__ = "
|
|
34
|
+
__version__ = "3.0.0"
|
|
36
35
|
__all__ = [
|
|
37
|
-
#
|
|
36
|
+
# Memory classes
|
|
38
37
|
"CoreMemory",
|
|
39
38
|
"SmartMemory",
|
|
40
39
|
"FullMemory",
|
|
41
40
|
"Memory",
|
|
42
|
-
# Simplified interface
|
|
41
|
+
# Simplified interface (the 4-operation API)
|
|
43
42
|
"Dhee",
|
|
44
|
-
"Engram",
|
|
45
43
|
# Universal plugin
|
|
46
44
|
"DheePlugin",
|
|
47
45
|
# CategoryMem
|
|
@@ -60,9 +58,3 @@ __all__ = [
|
|
|
60
58
|
"CategoryMemConfig",
|
|
61
59
|
"ScopeConfig",
|
|
62
60
|
]
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def _load_teaching():
|
|
66
|
-
"""Lazy-load teaching module to avoid import overhead when not needed."""
|
|
67
|
-
from dhee.teaching import ConceptStore, StudentModel, TeachingMemory, TeachingConfig
|
|
68
|
-
return ConceptStore, StudentModel, TeachingMemory, TeachingConfig
|