hipcortex 0.5.2__tar.gz → 3.11.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.
- {hipcortex-0.5.2 → hipcortex-3.11.0}/PKG-INFO +166 -166
- {hipcortex-0.5.2 → hipcortex-3.11.0}/README.md +3 -3
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/__init__.py +3 -1
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/adapters/autogen.py +229 -175
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/adapters/crewai.py +233 -173
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/async_client.py +378 -378
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/cli.py +1699 -1652
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/client.py +790 -615
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/indexer.py +219 -219
- hipcortex-3.11.0/hipcortex/install/RUNNER_SKILL.md +89 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/SKILL.md +196 -162
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/__init__.py +1 -1
- hipcortex-3.11.0/hipcortex/install/mcp_server.py +1991 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install_hosts.py +997 -997
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/langchain_memory.py +376 -282
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/llamaindex_storage.py +107 -107
- hipcortex-3.11.0/hipcortex/runner.py +200 -0
- hipcortex-3.11.0/hipcortex/substrate.py +100 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex.egg-info/PKG-INFO +166 -166
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex.egg-info/SOURCES.txt +9 -1
- {hipcortex-0.5.2 → hipcortex-3.11.0}/pyproject.toml +53 -53
- {hipcortex-0.5.2 → hipcortex-3.11.0}/setup.cfg +4 -4
- {hipcortex-0.5.2 → hipcortex-3.11.0}/setup.py +37 -35
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_async_client.py +101 -101
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_async_langchain.py +61 -61
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_cli_install.py +2241 -2241
- hipcortex-3.11.0/tests/test_client_v070.py +161 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_doctor.py +9 -2
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_host_install_e2e.py +145 -145
- hipcortex-3.11.0/tests/test_mcp_server_req.py +151 -0
- hipcortex-3.11.0/tests/test_mcp_tool_surface.py +410 -0
- hipcortex-3.11.0/tests/test_probe_honesty_runtime.py +68 -0
- hipcortex-3.11.0/tests/test_substrate.py +72 -0
- hipcortex-0.5.2/hipcortex/install/mcp_server.py +0 -794
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/adapters/__init__.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/adapters/common.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/config.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/daemon.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/doctor.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/framework_scaffold.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/autogen.py.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/crewai.py.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/dspy.py.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/langchain.py.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/llamaindex.py.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/n8n_curl.sh.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex/install/templates/pydantic_ai.py.tmpl +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex.egg-info/dependency_links.txt +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex.egg-info/entry_points.txt +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex.egg-info/requires.txt +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/hipcortex.egg-info/top_level.txt +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_adapters_common.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_can_execute.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_client_config.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_config.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_daemon.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_harness_with_loop.py +0 -0
- {hipcortex-0.5.2 → hipcortex-3.11.0}/tests/test_reflect_predict.py +0 -0
|
@@ -1,166 +1,166 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: hipcortex
|
|
3
|
-
Version:
|
|
4
|
-
Summary:
|
|
5
|
-
Author: HipCortex Contributors
|
|
6
|
-
License: Apache-2.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/farmountain/HipCortex
|
|
8
|
-
Project-URL: Repository, https://github.com/farmountain/HipCortex
|
|
9
|
-
Project-URL: Issues, https://github.com/farmountain/HipCortex/issues
|
|
10
|
-
Project-URL: Benchmark, https://github.com/farmountain/HipCortex/blob/main/BENCHMARK.md
|
|
11
|
-
Keywords: ai,memory,langchain,autogen,crewai,llm,agents,rag
|
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
-
Classifier: Intended Audience :: Developers
|
|
16
|
-
Requires-Python: >=3.9
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
Requires-Dist: requests>=2.28
|
|
19
|
-
Requires-Dist: httpx>=0.27
|
|
20
|
-
Provides-Extra: langchain
|
|
21
|
-
Requires-Dist: langchain-core>=0.1; extra == "langchain"
|
|
22
|
-
Provides-Extra: llamaindex
|
|
23
|
-
Requires-Dist: llama-index-core>=0.10; extra == "llamaindex"
|
|
24
|
-
Provides-Extra: crewai
|
|
25
|
-
Requires-Dist: crewai>=0.28; extra == "crewai"
|
|
26
|
-
Requires-Dist: crewai-tools>=0.1; extra == "crewai"
|
|
27
|
-
Provides-Extra: autogen
|
|
28
|
-
Requires-Dist: pyautogen>=0.2; extra == "autogen"
|
|
29
|
-
Provides-Extra: benchmark
|
|
30
|
-
Requires-Dist: mem0ai>=0.1; extra == "benchmark"
|
|
31
|
-
Requires-Dist: tabulate>=0.9; extra == "benchmark"
|
|
32
|
-
Provides-Extra: test
|
|
33
|
-
Requires-Dist: pytest>=7.0; extra == "test"
|
|
34
|
-
Requires-Dist: pytest-asyncio>=0.23; extra == "test"
|
|
35
|
-
Provides-Extra: all
|
|
36
|
-
Requires-Dist: langchain-core>=0.1; extra == "all"
|
|
37
|
-
Requires-Dist: llama-index-core>=0.10; extra == "all"
|
|
38
|
-
Requires-Dist: crewai>=0.28; extra == "all"
|
|
39
|
-
Requires-Dist: crewai-tools>=0.1; extra == "all"
|
|
40
|
-
Requires-Dist: pyautogen>=0.2; extra == "all"
|
|
41
|
-
Requires-Dist: mem0ai>=0.1; extra == "all"
|
|
42
|
-
Requires-Dist: tabulate>=0.9; extra == "all"
|
|
43
|
-
Dynamic: requires-python
|
|
44
|
-
|
|
45
|
-
# HipCortex Python SDK (`
|
|
46
|
-
|
|
47
|
-
**Persistent causal topological memory, recursive Bayesian world-model prediction (`/worldmodel/rollout`), and automatic FSM skill compilation for autonomous AI agents.**
|
|
48
|
-
|
|
49
|
-
Runs against the standalone local Rust binary (`http://127.0.0.1:3030`) with `0.48–0.61 ms p50` write latency, SHA-256 Merkle audit chains, and Headroom context budgeting (`59–88% token savings`).
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## 🚀 Installation
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
pip install hipcortex
|
|
57
|
-
hipcortex doctor # verify server health + version after install
|
|
58
|
-
hipcortex install # wizard: MCP hosts + copies ~/.hipcortex-mcp/server.py (
|
|
59
|
-
hipcortex channels # honesty matrix (native / mcp / framework / guide)
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Version matrix:** product pip/Cargo/MCP `serverInfo` = **
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## ⚡ Quick Start: Multi-Tier Memory & World Model Prediction
|
|
67
|
-
|
|
68
|
-
```python
|
|
69
|
-
from hipcortex import HipCortexClient
|
|
70
|
-
|
|
71
|
-
client = HipCortexClient(base_url="http://127.0.0.1:3030")
|
|
72
|
-
|
|
73
|
-
# 1. Multi-Tier Memory Ingestion (5 verified memory tiers)
|
|
74
|
-
client.add_memory(
|
|
75
|
-
actor="agent",
|
|
76
|
-
action="configured",
|
|
77
|
-
target="jwt_token_ttl=3600",
|
|
78
|
-
record_type="Working", # Mapped natively to Temporal tier
|
|
79
|
-
priority="high"
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
client.add_memory(
|
|
83
|
-
actor="agent",
|
|
84
|
-
action="established",
|
|
85
|
-
target="All database migrations must run inside transactions",
|
|
86
|
-
record_type="Semantic", # Mapped natively to Symbolic/LongTerm tier
|
|
87
|
-
priority="pinned"
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
# 2. Check SelfModel Execution Capacity Gates before running risky actions
|
|
91
|
-
if client.can_execute("rollout"):
|
|
92
|
-
print("Health check passed — engine ready for simulation")
|
|
93
|
-
|
|
94
|
-
# 3. World Model Trajectory Rollout Prediction (POST /worldmodel/rollout)
|
|
95
|
-
rollout_result = client.rollout(
|
|
96
|
-
initial_state={"db_status": "locked", "active_tx": 1},
|
|
97
|
-
actions=["rollback_tx", "release_lock", "retry_migration"]
|
|
98
|
-
)
|
|
99
|
-
print("Predicted outcome:", rollout_result)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## 🧠 Proactive CodeAct Harness & Live Beliefs
|
|
105
|
-
|
|
106
|
-
For autonomous agent harnesses (`LangChain`, `LlamaIndex`, `CrewAI`, `AutoGen`), query the topological substrate before reasoning:
|
|
107
|
-
|
|
108
|
-
```python
|
|
109
|
-
# Query live causal beliefs and Top-K topological context (Personalized PageRank)
|
|
110
|
-
context = client.context(query="database migrations", actor="agent", limit=5)
|
|
111
|
-
print("Active Topological Context:\n", context)
|
|
112
|
-
|
|
113
|
-
# Store multi-hop reasoning or CoT reflection
|
|
114
|
-
client.add_memory(
|
|
115
|
-
actor="agent",
|
|
116
|
-
action="reflected",
|
|
117
|
-
target="Migration failed due to missing index on users.email",
|
|
118
|
-
record_type="Causal"
|
|
119
|
-
)
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## 🧩 Framework Integrations
|
|
125
|
-
|
|
126
|
-
### LangChain (`ConversationBufferMemory` drop-in)
|
|
127
|
-
```python
|
|
128
|
-
from hipcortex.langchain_memory import HipCortexMemory
|
|
129
|
-
|
|
130
|
-
memory = HipCortexMemory(session_id="session-42", url="http://127.0.0.1:3030")
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### LlamaIndex (`ChatStore`)
|
|
134
|
-
```python
|
|
135
|
-
from hipcortex.llamaindex_storage import HipCortexStorageContext
|
|
136
|
-
|
|
137
|
-
storage_context = HipCortexStorageContext.from_defaults(client=client)
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### CrewAI (`Remember` & `Recall` Tools)
|
|
141
|
-
```python
|
|
142
|
-
from hipcortex.adapters.crewai import HipCortexRememberTool, HipCortexRecallTool
|
|
143
|
-
|
|
144
|
-
tools = [HipCortexRememberTool(client=client), HipCortexRecallTool(client=client)]
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### AutoGen (`Memory` Hook)
|
|
148
|
-
```python
|
|
149
|
-
from hipcortex.adapters.autogen import HipCortexAutoGenMemory
|
|
150
|
-
|
|
151
|
-
mem = HipCortexAutoGenMemory(client=client, agent_id="researcher")
|
|
152
|
-
agent.register_hook("process_message_before_send", mem.on_message_sent)
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## 📊 Server Statistics & GDPR Right-to-Forget
|
|
158
|
-
|
|
159
|
-
```python
|
|
160
|
-
# Get Merkle hash chain status and tier counts
|
|
161
|
-
stats = client.stats()
|
|
162
|
-
print("Memory statistics:", stats)
|
|
163
|
-
|
|
164
|
-
# Erase all records for a specific actor (GDPR compliant)
|
|
165
|
-
client.forget("agent")
|
|
166
|
-
```
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hipcortex
|
|
3
|
+
Version: 3.11.0
|
|
4
|
+
Summary: Cognitive state substrate for AI agents — Python SDK + CLI. Universal server-side passive capture (any channel, zero client changes); ships the 61-tool / 7-resource MCP server; hard single-role runner, observation-content predicate scorer, GoalRevision→ClarifyEngine, 24h field log, WAL-persistent. LangChain, AutoGen, CrewAI, MCP
|
|
5
|
+
Author: HipCortex Contributors
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/farmountain/HipCortex
|
|
8
|
+
Project-URL: Repository, https://github.com/farmountain/HipCortex
|
|
9
|
+
Project-URL: Issues, https://github.com/farmountain/HipCortex/issues
|
|
10
|
+
Project-URL: Benchmark, https://github.com/farmountain/HipCortex/blob/main/BENCHMARK.md
|
|
11
|
+
Keywords: ai,memory,langchain,autogen,crewai,llm,agents,rag
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Requires-Dist: requests>=2.28
|
|
19
|
+
Requires-Dist: httpx>=0.27
|
|
20
|
+
Provides-Extra: langchain
|
|
21
|
+
Requires-Dist: langchain-core>=0.1; extra == "langchain"
|
|
22
|
+
Provides-Extra: llamaindex
|
|
23
|
+
Requires-Dist: llama-index-core>=0.10; extra == "llamaindex"
|
|
24
|
+
Provides-Extra: crewai
|
|
25
|
+
Requires-Dist: crewai>=0.28; extra == "crewai"
|
|
26
|
+
Requires-Dist: crewai-tools>=0.1; extra == "crewai"
|
|
27
|
+
Provides-Extra: autogen
|
|
28
|
+
Requires-Dist: pyautogen>=0.2; extra == "autogen"
|
|
29
|
+
Provides-Extra: benchmark
|
|
30
|
+
Requires-Dist: mem0ai>=0.1; extra == "benchmark"
|
|
31
|
+
Requires-Dist: tabulate>=0.9; extra == "benchmark"
|
|
32
|
+
Provides-Extra: test
|
|
33
|
+
Requires-Dist: pytest>=7.0; extra == "test"
|
|
34
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "test"
|
|
35
|
+
Provides-Extra: all
|
|
36
|
+
Requires-Dist: langchain-core>=0.1; extra == "all"
|
|
37
|
+
Requires-Dist: llama-index-core>=0.10; extra == "all"
|
|
38
|
+
Requires-Dist: crewai>=0.28; extra == "all"
|
|
39
|
+
Requires-Dist: crewai-tools>=0.1; extra == "all"
|
|
40
|
+
Requires-Dist: pyautogen>=0.2; extra == "all"
|
|
41
|
+
Requires-Dist: mem0ai>=0.1; extra == "all"
|
|
42
|
+
Requires-Dist: tabulate>=0.9; extra == "all"
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
|
|
45
|
+
# HipCortex Python SDK (`v3.11.0`)
|
|
46
|
+
|
|
47
|
+
**Persistent causal topological memory, recursive Bayesian world-model prediction (`/worldmodel/rollout`), and automatic FSM skill compilation for autonomous AI agents.**
|
|
48
|
+
|
|
49
|
+
Runs against the standalone local Rust binary (`http://127.0.0.1:3030`) with `0.48–0.61 ms p50` write latency, SHA-256 Merkle audit chains, and Headroom context budgeting (`59–88% token savings`).
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 🚀 Installation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install hipcortex
|
|
57
|
+
hipcortex doctor # verify server health + version after install
|
|
58
|
+
hipcortex install # wizard: MCP hosts + copies ~/.hipcortex-mcp/server.py (61 tools)
|
|
59
|
+
hipcortex channels # honesty matrix (native / mcp / framework / guide)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Version matrix:** product pip/Cargo/MCP `serverInfo` = **3.11.0**; VS Code VSIX = **3.11.0**. See [docs/channels.md](../../docs/channels.md).
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## ⚡ Quick Start: Multi-Tier Memory & World Model Prediction
|
|
67
|
+
|
|
68
|
+
```python
|
|
69
|
+
from hipcortex import HipCortexClient
|
|
70
|
+
|
|
71
|
+
client = HipCortexClient(base_url="http://127.0.0.1:3030")
|
|
72
|
+
|
|
73
|
+
# 1. Multi-Tier Memory Ingestion (5 verified memory tiers)
|
|
74
|
+
client.add_memory(
|
|
75
|
+
actor="agent",
|
|
76
|
+
action="configured",
|
|
77
|
+
target="jwt_token_ttl=3600",
|
|
78
|
+
record_type="Working", # Mapped natively to Temporal tier
|
|
79
|
+
priority="high"
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
client.add_memory(
|
|
83
|
+
actor="agent",
|
|
84
|
+
action="established",
|
|
85
|
+
target="All database migrations must run inside transactions",
|
|
86
|
+
record_type="Semantic", # Mapped natively to Symbolic/LongTerm tier
|
|
87
|
+
priority="pinned"
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
# 2. Check SelfModel Execution Capacity Gates before running risky actions
|
|
91
|
+
if client.can_execute("rollout"):
|
|
92
|
+
print("Health check passed — engine ready for simulation")
|
|
93
|
+
|
|
94
|
+
# 3. World Model Trajectory Rollout Prediction (POST /worldmodel/rollout)
|
|
95
|
+
rollout_result = client.rollout(
|
|
96
|
+
initial_state={"db_status": "locked", "active_tx": 1},
|
|
97
|
+
actions=["rollback_tx", "release_lock", "retry_migration"]
|
|
98
|
+
)
|
|
99
|
+
print("Predicted outcome:", rollout_result)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 🧠 Proactive CodeAct Harness & Live Beliefs
|
|
105
|
+
|
|
106
|
+
For autonomous agent harnesses (`LangChain`, `LlamaIndex`, `CrewAI`, `AutoGen`), query the topological substrate before reasoning:
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
# Query live causal beliefs and Top-K topological context (Personalized PageRank)
|
|
110
|
+
context = client.context(query="database migrations", actor="agent", limit=5)
|
|
111
|
+
print("Active Topological Context:\n", context)
|
|
112
|
+
|
|
113
|
+
# Store multi-hop reasoning or CoT reflection
|
|
114
|
+
client.add_memory(
|
|
115
|
+
actor="agent",
|
|
116
|
+
action="reflected",
|
|
117
|
+
target="Migration failed due to missing index on users.email",
|
|
118
|
+
record_type="Causal"
|
|
119
|
+
)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 🧩 Framework Integrations
|
|
125
|
+
|
|
126
|
+
### LangChain (`ConversationBufferMemory` drop-in)
|
|
127
|
+
```python
|
|
128
|
+
from hipcortex.langchain_memory import HipCortexMemory
|
|
129
|
+
|
|
130
|
+
memory = HipCortexMemory(session_id="session-42", url="http://127.0.0.1:3030")
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### LlamaIndex (`ChatStore`)
|
|
134
|
+
```python
|
|
135
|
+
from hipcortex.llamaindex_storage import HipCortexStorageContext
|
|
136
|
+
|
|
137
|
+
storage_context = HipCortexStorageContext.from_defaults(client=client)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### CrewAI (`Remember` & `Recall` Tools)
|
|
141
|
+
```python
|
|
142
|
+
from hipcortex.adapters.crewai import HipCortexRememberTool, HipCortexRecallTool
|
|
143
|
+
|
|
144
|
+
tools = [HipCortexRememberTool(client=client), HipCortexRecallTool(client=client)]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### AutoGen (`Memory` Hook)
|
|
148
|
+
```python
|
|
149
|
+
from hipcortex.adapters.autogen import HipCortexAutoGenMemory
|
|
150
|
+
|
|
151
|
+
mem = HipCortexAutoGenMemory(client=client, agent_id="researcher")
|
|
152
|
+
agent.register_hook("process_message_before_send", mem.on_message_sent)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## 📊 Server Statistics & GDPR Right-to-Forget
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
# Get Merkle hash chain status and tier counts
|
|
161
|
+
stats = client.stats()
|
|
162
|
+
print("Memory statistics:", stats)
|
|
163
|
+
|
|
164
|
+
# Erase all records for a specific actor (GDPR compliant)
|
|
165
|
+
client.forget("agent")
|
|
166
|
+
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# HipCortex Python SDK (`
|
|
1
|
+
# HipCortex Python SDK (`v3.11.0`)
|
|
2
2
|
|
|
3
3
|
**Persistent causal topological memory, recursive Bayesian world-model prediction (`/worldmodel/rollout`), and automatic FSM skill compilation for autonomous AI agents.**
|
|
4
4
|
|
|
@@ -11,11 +11,11 @@ Runs against the standalone local Rust binary (`http://127.0.0.1:3030`) with `0.
|
|
|
11
11
|
```bash
|
|
12
12
|
pip install hipcortex
|
|
13
13
|
hipcortex doctor # verify server health + version after install
|
|
14
|
-
hipcortex install # wizard: MCP hosts + copies ~/.hipcortex-mcp/server.py (
|
|
14
|
+
hipcortex install # wizard: MCP hosts + copies ~/.hipcortex-mcp/server.py (61 tools)
|
|
15
15
|
hipcortex channels # honesty matrix (native / mcp / framework / guide)
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
**Version matrix:** product pip/Cargo/MCP `serverInfo` = **
|
|
18
|
+
**Version matrix:** product pip/Cargo/MCP `serverInfo` = **3.11.0**; VS Code VSIX = **3.11.0**. See [docs/channels.md](../../docs/channels.md).
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
@@ -4,12 +4,14 @@ from .client import HipCortexClient
|
|
|
4
4
|
from .async_client import AsyncHipCortexClient
|
|
5
5
|
from .langchain_memory import HipCortexMemory, AsyncHipCortexMemory
|
|
6
6
|
from .llamaindex_storage import HipCortexStorageContext
|
|
7
|
+
from .substrate import HipCortexSubstrate
|
|
7
8
|
|
|
8
|
-
__version__ = "
|
|
9
|
+
__version__ = "3.11.0"
|
|
9
10
|
__all__ = [
|
|
10
11
|
"HipCortexClient",
|
|
11
12
|
"AsyncHipCortexClient",
|
|
12
13
|
"HipCortexMemory",
|
|
13
14
|
"AsyncHipCortexMemory",
|
|
14
15
|
"HipCortexStorageContext",
|
|
16
|
+
"HipCortexSubstrate",
|
|
15
17
|
]
|