Self-hostable AI memory system for agents and applications
Project description
MemoryFn Python SDK
Self-hostable AI memory system for agents and applications
Installation
pip install memoryfn
Usage
import asyncio
from memoryfn import MemoryFn, Config
async def main():
memory = MemoryFn(Config(
storage_url="postgresql://user:pass@localhost:5432/memoryfn",
openai_api_key="sk-..."
))
# Add memory
await memory.add(
content="User prefers dark mode",
container_tags=["user:alice"],
type="profile_static"
)
# Search
results = await memory.search(
q="preferences",
container_tags=["user:alice"]
)
print(results)
if __name__ == "__main__":
asyncio.run(main())
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
memoryfn-0.0.1.tar.gz
(5.2 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
File details
Details for the file memoryfn-0.0.1.tar.gz.
File metadata
- Download URL: memoryfn-0.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a026500df87904eab3031ae2a2e0dd3b9d414bbb899d4d7c9adc12b0b655877
|
|
| MD5 |
4d3315eb827149c5e5c85fab12b16c79
|
|
| BLAKE2b-256 |
c2b759fd68d967b5e247fe917aac390a4329b462df814f08edd83c785c372c95
|
File details
Details for the file memoryfn-0.0.1-py3-none-any.whl.
File metadata
- Download URL: memoryfn-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2479b5fd3fd777c2b4c12b0489adbf8b75b744aa3b6847fc7937ad8876edc800
|
|
| MD5 |
043129cfe0eb41ea488365d5984334be
|
|
| BLAKE2b-256 |
bbd9e6c43568ffa79526853dde16dbe1499aab06806937ff13ed4bbd20ebf639
|