Advanced Memory API for AI Agents with Reinforcement Learning - 3-line integration
Project description
Hebbrix Python SDK
Official Python SDK for the Hebbrix api - the only memory API with Reinforcement Learning.
🚀 Features
- ✅ Complete API Coverage - All 50+ endpoints supported
- ✅ Reinforcement Learning - Train AI agents to optimize memory operations
- ✅ Temporal Knowledge Graphs - Track facts over time with bi-temporal model
- ✅ Procedural Memory - Store and execute learned skills
- ✅ Working Memory - Short-term context buffer for conversations
- ✅ Memory Consolidation - Automatic compression of episodic memories
- ✅ Async/Await - Full async support with httpx
- ✅ Type Hints - Complete type annotations
- ✅ Clean API - Pythonic, intuitive interface
📦 Installation
pip install hebbrix
🔥 Quick Start
import asyncio
from hebbrix import MemoryClient
async def main():
# Initialize client
client = MemoryClient(api_key="mem_sk_your_api_key")
# Create a collection
collection = await client.collections.create(
name="My AI Agent",
description="Personal memory for my chatbot"
)
# Store a memory
memory = await client.memories.create(
collection_id=collection["id"],
content="User prefers dark mode and loves Python",
importance=0.9
)
# Search memories
results = await client.search(
query="What programming language does user like?",
collection_id=collection["id"],
limit=5
)
print(results)
# Close client
await client.close()
asyncio.run(main())
📚 Complete Documentation
Visit https://docs.hebbrix.com for full documentation.
🔗 Links
- Documentation: https://docs.hebbrix.com
- API Reference: https://api.hebbrix.com/docs
- GitHub: https://github.com/hebbrix/hebbrix
- Examples: https://github.com/hebbrix/examples
📄 License
MIT License - see LICENSE for details
Built with ❤️ by the Hebbrix team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hebbrix-2.0.2.tar.gz
(13.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hebbrix-2.0.2-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file hebbrix-2.0.2.tar.gz.
File metadata
- Download URL: hebbrix-2.0.2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e71235adf8a1b5d021163e036256417d6d7b616e2ac595cd33739e07211fc4
|
|
| MD5 |
f9f28ab421e4b52e87a65c477a0d1e89
|
|
| BLAKE2b-256 |
04e77fd8a8066d1231d0437acdd1cd36bd6c5543dc8a19962cb20d821f8f4fa6
|
File details
Details for the file hebbrix-2.0.2-py3-none-any.whl.
File metadata
- Download URL: hebbrix-2.0.2-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5e491b8a6dc657f470862131a32f1e2c2daffdcae53befd28c854ee3b41920
|
|
| MD5 |
44a4f64445a561cf5a10ff9d597dfe52
|
|
| BLAKE2b-256 |
972edeeaedb00abd00d6902885e46b656f16f2bc8e8d4f59e7693457e3246e1c
|