hebbrix 2.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.
- hebbrix/__init__.py +69 -0
- hebbrix/chat.py +349 -0
- hebbrix/client.py +226 -0
- hebbrix/exceptions.py +48 -0
- hebbrix/resources.py +978 -0
- hebbrix-2.0.0.dist-info/METADATA +125 -0
- hebbrix-2.0.0.dist-info/RECORD +9 -0
- hebbrix-2.0.0.dist-info/WHEEL +5 -0
- hebbrix-2.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hebbrix
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Advanced Memory API for AI Agents with Reinforcement Learning - 3-line integration
|
|
5
|
+
Home-page: https://github.com/hebbrix/hebbrix-python
|
|
6
|
+
Author: Hebbrix Team
|
|
7
|
+
Author-email: Hebbrix Team <support@hebbrix.com>
|
|
8
|
+
Maintainer-email: Hebbrix Team <support@hebbrix.com>
|
|
9
|
+
License: MIT
|
|
10
|
+
Project-URL: Homepage, https://hebbrix.com
|
|
11
|
+
Project-URL: Documentation, https://docs.hebbrix.com
|
|
12
|
+
Project-URL: Repository, https://github.com/hebbrix/hebbrix-python
|
|
13
|
+
Project-URL: Bug Tracker, https://github.com/hebbrix/hebbrix-python/issues
|
|
14
|
+
Project-URL: API Reference, https://memory-api.livelystone-78e9a45c.centralus.azurecontainerapps.io/docs
|
|
15
|
+
Keywords: ai,memory,agents,llm,chatbot,assistant,ml,reinforcement-learning,knowledge-graph,vector-search,rag,temporal,procedural-memory,working-memory
|
|
16
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Classifier: Topic :: Database
|
|
21
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Classifier: Operating System :: OS Independent
|
|
29
|
+
Classifier: Framework :: AsyncIO
|
|
30
|
+
Requires-Python: >=3.8
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
Requires-Dist: httpx>=0.25.0
|
|
33
|
+
Requires-Dist: requests>=2.31.0
|
|
34
|
+
Provides-Extra: dev
|
|
35
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
36
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
37
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: flake8>=6.0.0; extra == "dev"
|
|
39
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
40
|
+
Dynamic: author
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: requires-python
|
|
43
|
+
|
|
44
|
+
# Hebbrix Python SDK
|
|
45
|
+
|
|
46
|
+
[](https://pypi.org/project/hebbrix/)
|
|
47
|
+
[](https://pypi.org/project/hebbrix/)
|
|
48
|
+
[](LICENSE)
|
|
49
|
+
|
|
50
|
+
Official Python SDK for the Hebbrix api - **the only memory API with Reinforcement Learning**.
|
|
51
|
+
|
|
52
|
+
## 🚀 Features
|
|
53
|
+
|
|
54
|
+
- ✅ **Complete API Coverage** - All 50+ endpoints supported
|
|
55
|
+
- ✅ **Reinforcement Learning** - Train AI agents to optimize memory operations
|
|
56
|
+
- ✅ **Temporal Knowledge Graphs** - Track facts over time with bi-temporal model
|
|
57
|
+
- ✅ **Procedural Memory** - Store and execute learned skills
|
|
58
|
+
- ✅ **Working Memory** - Short-term context buffer for conversations
|
|
59
|
+
- ✅ **Memory Consolidation** - Automatic compression of episodic memories
|
|
60
|
+
- ✅ **Async/Await** - Full async support with httpx
|
|
61
|
+
- ✅ **Type Hints** - Complete type annotations
|
|
62
|
+
- ✅ **Clean API** - Pythonic, intuitive interface
|
|
63
|
+
|
|
64
|
+
## 📦 Installation
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pip install hebbrix
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 🔥 Quick Start
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
import asyncio
|
|
74
|
+
from hebbrix import MemoryClient
|
|
75
|
+
|
|
76
|
+
async def main():
|
|
77
|
+
# Initialize client
|
|
78
|
+
client = MemoryClient(api_key="mem_sk_your_api_key")
|
|
79
|
+
|
|
80
|
+
# Create a collection
|
|
81
|
+
collection = await client.collections.create(
|
|
82
|
+
name="My AI Agent",
|
|
83
|
+
description="Personal memory for my chatbot"
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
# Store a memory
|
|
87
|
+
memory = await client.memories.create(
|
|
88
|
+
collection_id=collection["id"],
|
|
89
|
+
content="User prefers dark mode and loves Python",
|
|
90
|
+
importance=0.9
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
# Search memories
|
|
94
|
+
results = await client.search(
|
|
95
|
+
query="What programming language does user like?",
|
|
96
|
+
collection_id=collection["id"],
|
|
97
|
+
limit=5
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
print(results)
|
|
101
|
+
|
|
102
|
+
# Close client
|
|
103
|
+
await client.close()
|
|
104
|
+
|
|
105
|
+
asyncio.run(main())
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## 📚 Complete Documentation
|
|
109
|
+
|
|
110
|
+
Visit https://docs.hebbrix.com for full documentation.
|
|
111
|
+
|
|
112
|
+
## 🔗 Links
|
|
113
|
+
|
|
114
|
+
- **Documentation**: https://docs.hebbrix.com
|
|
115
|
+
- **API Reference**: https://api.hebbrix.com/docs
|
|
116
|
+
- **GitHub**: https://github.com/hebbrix/hebbrix
|
|
117
|
+
- **Examples**: https://github.com/hebbrix/examples
|
|
118
|
+
|
|
119
|
+
## 📄 License
|
|
120
|
+
|
|
121
|
+
MIT License - see [LICENSE](LICENSE) for details
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
**Built with ❤️ by the Hebbrix team**
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
hebbrix/__init__.py,sha256=lvQXooqrinupBUEZWexS_e-CtIqOK8xPoCyDxdk5M5E,1970
|
|
2
|
+
hebbrix/chat.py,sha256=nZ1bwN7aYo-O9YILnHoPPvGUf5wxEhG93fVxBUDrmgE,10600
|
|
3
|
+
hebbrix/client.py,sha256=2MOWNXOcsezjrVlvn2ST478qyglcQWFEXuSG8cNfi6E,6574
|
|
4
|
+
hebbrix/exceptions.py,sha256=-0_LhzsAihxqtqBpDkqqUMXf3QCOLHZ-f8URRE62FBw,1309
|
|
5
|
+
hebbrix/resources.py,sha256=PfPLPpZCyAZxN86dQjc2m9ULanYpWuhEAE8Rcq8G1vg,25506
|
|
6
|
+
hebbrix-2.0.0.dist-info/METADATA,sha256=sks1vUb1JK0Gy4XSgx3pfXxpldSkEyq5E7T2uT7Ixc4,4251
|
|
7
|
+
hebbrix-2.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
hebbrix-2.0.0.dist-info/top_level.txt,sha256=D-tObF7AXVBASt_iDfSemeoU1q72GDAZqABciWukOvA,8
|
|
9
|
+
hebbrix-2.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hebbrix
|