Skip to main content

Advanced Memory API for AI Agents with Reinforcement Learning - 3-line integration

Reason this release was yanked:

Contains hardcoded default URL pointing at a deprecated Azure endpoint that no longer resolves. Upgrade to 2.0.2+ which uses https://api.hebbrix.com.

Project description

Hebbrix Python SDK

PyPI version Python versions License

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

📄 License

MIT License - see LICENSE for details


Built with ❤️ by the Hebbrix team

Project details


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.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hebbrix-2.0.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file hebbrix-2.0.0.tar.gz.

File metadata

  • Download URL: hebbrix-2.0.0.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

Hashes for hebbrix-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c3cb010cac68a650810b57736bb782f04c6d0b83e0b07f528a7bd2ebad5b7cd2
MD5 23b81805c4405685833bccec9822096b
BLAKE2b-256 f8152f78babe13c382b4a3e8a7191f1254f28ba19de138a2255edd96bcfc0c73

See more details on using hashes here.

File details

Details for the file hebbrix-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: hebbrix-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for hebbrix-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f312d8aaf042bd45c4312af57e7936b18e223f144c4bd0fdaa5523293010ff18
MD5 af4472379f4ad864741988fe4d111ffa
BLAKE2b-256 ff4a4bab5c33d618982775116f52497f18849e47ed6f09cacb4dc400b829e399

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page