hipcortex 0.2.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.
- hipcortex/__init__.py +15 -0
- hipcortex/adapters/__init__.py +1 -0
- hipcortex/adapters/autogen.py +156 -0
- hipcortex/adapters/crewai.py +153 -0
- hipcortex/async_client.py +255 -0
- hipcortex/cli.py +480 -0
- hipcortex/client.py +223 -0
- hipcortex/install/SKILL.md +114 -0
- hipcortex/install/__init__.py +1 -0
- hipcortex/langchain_memory.py +238 -0
- hipcortex/llamaindex_storage.py +107 -0
- hipcortex-0.2.0.dist-info/METADATA +108 -0
- hipcortex-0.2.0.dist-info/RECORD +16 -0
- hipcortex-0.2.0.dist-info/WHEEL +5 -0
- hipcortex-0.2.0.dist-info/entry_points.txt +2 -0
- hipcortex-0.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hipcortex
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Persistent causal memory for AI agents — LangChain, LlamaIndex, AutoGen, CrewAI
|
|
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: all
|
|
33
|
+
Requires-Dist: langchain-core>=0.1; extra == "all"
|
|
34
|
+
Requires-Dist: llama-index-core>=0.10; extra == "all"
|
|
35
|
+
Requires-Dist: crewai>=0.28; extra == "all"
|
|
36
|
+
Requires-Dist: crewai-tools>=0.1; extra == "all"
|
|
37
|
+
Requires-Dist: pyautogen>=0.2; extra == "all"
|
|
38
|
+
Requires-Dist: mem0ai>=0.1; extra == "all"
|
|
39
|
+
Requires-Dist: tabulate>=0.9; extra == "all"
|
|
40
|
+
Dynamic: requires-python
|
|
41
|
+
|
|
42
|
+
# hipcortex
|
|
43
|
+
|
|
44
|
+
**Persistent causal memory for AI agents — LangChain, LlamaIndex, AutoGen, CrewAI.**
|
|
45
|
+
|
|
46
|
+
1.74ms p50 write latency. Temporal decay. Causal world model. Merkle-chained audit log. GDPR right-to-forget.
|
|
47
|
+
|
|
48
|
+
## Install
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install hipcortex
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Quick start
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
from hipcortex import HipCortexClient
|
|
58
|
+
|
|
59
|
+
client = HipCortexClient("http://localhost:3030")
|
|
60
|
+
|
|
61
|
+
# Store memory
|
|
62
|
+
client.add_memory(actor="alice", action="said", target="The meeting is at 3pm")
|
|
63
|
+
|
|
64
|
+
# Search (keyword or cosine similarity)
|
|
65
|
+
results = client.search("meeting time", limit=5)
|
|
66
|
+
|
|
67
|
+
# Stats
|
|
68
|
+
print(client.stats())
|
|
69
|
+
|
|
70
|
+
# GDPR forget
|
|
71
|
+
client.forget("alice")
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Framework integrations
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
# LangChain — drop-in for ConversationBufferMemory
|
|
78
|
+
from hipcortex.langchain_memory import HipCortexMemory
|
|
79
|
+
memory = HipCortexMemory(session_id="user-42", url="http://localhost:3030")
|
|
80
|
+
|
|
81
|
+
# LlamaIndex
|
|
82
|
+
from hipcortex.llamaindex_storage import HipCortexChatStore
|
|
83
|
+
store = HipCortexChatStore(client=client)
|
|
84
|
+
|
|
85
|
+
# AutoGen
|
|
86
|
+
from hipcortex.adapters.autogen import HipCortexAutoGenMemory
|
|
87
|
+
mem = HipCortexAutoGenMemory(client=client, agent_id="researcher")
|
|
88
|
+
agent.register_hook("process_message_before_send", mem.on_message_sent)
|
|
89
|
+
|
|
90
|
+
# CrewAI
|
|
91
|
+
from hipcortex.adapters.crewai import HipCortexRememberTool, HipCortexRecallTool
|
|
92
|
+
tools = [HipCortexRememberTool(client=client), HipCortexRecallTool(client=client)]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Start the server
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# Self-hosted (single binary, zero deps)
|
|
99
|
+
cargo run --bin webserver --no-default-features --features "web-server,petgraph_backend"
|
|
100
|
+
|
|
101
|
+
# Fly.io
|
|
102
|
+
fly deploy
|
|
103
|
+
|
|
104
|
+
# Live demo
|
|
105
|
+
https://hipcortex.fly.dev
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Full docs:** https://github.com/farmountain/HipCortex
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
hipcortex/__init__.py,sha256=04qAYSPXqIPHCYuQ_B7RgMAthYiD9g0dz-eUnAQEKYU,434
|
|
2
|
+
hipcortex/async_client.py,sha256=mhP1Y1eKZjcHaWs8lPLS8LZKJ6ApMuAqQwAueVCmoWk,9401
|
|
3
|
+
hipcortex/cli.py,sha256=VHaSiN86zuPGTWfOXpO1MvcQscgYgXir25WwZKVbgBw,18031
|
|
4
|
+
hipcortex/client.py,sha256=cKuBYFNRG39AvgFFIMLk1qGAhoV48Xx7cu2PEDEbrvs,8261
|
|
5
|
+
hipcortex/langchain_memory.py,sha256=WRfn7eKa9jbl7QrNImncVjqnbQRRhdROYsFZTfBy16o,9320
|
|
6
|
+
hipcortex/llamaindex_storage.py,sha256=rp4nINqV2FLUyIowL5YQrjbfdZfENwe4JBQrUy_mv9Y,3934
|
|
7
|
+
hipcortex/adapters/__init__.py,sha256=gABDz_zjXqbYBWYzTW1TIjiXjb3KRqiJH4Af_sf83Xk,63
|
|
8
|
+
hipcortex/adapters/autogen.py,sha256=Dk3Bkfu7CpGPrMpwDbHIfgpKZ-YL6RF1TnPXgNRWc3I,6342
|
|
9
|
+
hipcortex/adapters/crewai.py,sha256=hkZLF8R5kzjWW0G8iRZtOhPITePKHDCONZL60poCLXw,5368
|
|
10
|
+
hipcortex/install/SKILL.md,sha256=EqUN7mjbxnC9v-m-lzeJsV_Ad-RZW-sqQDqZumrhi7g,4083
|
|
11
|
+
hipcortex/install/__init__.py,sha256=O23KEFwYLQm3zoP12oacpJid6WtfSH0y1_9Xz4-I0iA,79
|
|
12
|
+
hipcortex-0.2.0.dist-info/METADATA,sha256=ao46fQDwk10ELTUE6gslnSGiDttA8qAdh_6fZnBvLdI,3509
|
|
13
|
+
hipcortex-0.2.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
14
|
+
hipcortex-0.2.0.dist-info/entry_points.txt,sha256=aqxrc_349kx_mTwioCc6y-CCDgpQ41eyU3tjYRJMIOg,49
|
|
15
|
+
hipcortex-0.2.0.dist-info/top_level.txt,sha256=g9wmOgN3_mqbGW9lwip3nokQCU5l5ROCMBZtwuEbLCs,10
|
|
16
|
+
hipcortex-0.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hipcortex
|