memhouse 2.0.0rc2__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.
- memhouse/__init__.py +20 -0
- memhouse/_generated.py +2629 -0
- memhouse/adapters/__init__.py +14 -0
- memhouse/adapters/_tools.py +90 -0
- memhouse/adapters/langgraph.py +372 -0
- memhouse/adapters/openai_agents.py +177 -0
- memhouse/client.py +267 -0
- memhouse/hooks.py +143 -0
- memhouse/py.typed +0 -0
- memhouse-2.0.0rc2.dist-info/METADATA +75 -0
- memhouse-2.0.0rc2.dist-info/RECORD +12 -0
- memhouse-2.0.0rc2.dist-info/WHEEL +4 -0
memhouse/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
"""MemHouse SDK for Python: a governed memory service for AI agents.
|
|
3
|
+
|
|
4
|
+
from memhouse import MemHouse, MemoryHooks
|
|
5
|
+
|
|
6
|
+
mh = MemHouse() # MEMHOUSE_URL and MEMHOUSE_API_KEY
|
|
7
|
+
mh.remember({"subject": "customer:acme", "content": "Acme renews on 2027-03-01"})
|
|
8
|
+
print(mh.recall({"subject": "customer:acme", "query": "renewal", "render": True})["rendered"])
|
|
9
|
+
|
|
10
|
+
The client has one method per operation of the API (generated from the OpenAPI specification).
|
|
11
|
+
`MemoryHooks` are the four lifecycle hooks of an agent loop; they only call the API.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from ._generated import API_VERSION
|
|
15
|
+
from .client import HttpTransport, MemHouse, MemHouseError, Transport
|
|
16
|
+
from .hooks import MemoryHooks
|
|
17
|
+
|
|
18
|
+
__version__ = "2.0.0rc2"
|
|
19
|
+
|
|
20
|
+
__all__ = ["API_VERSION", "HttpTransport", "MemHouse", "MemHouseError", "MemoryHooks", "Transport", "__version__"]
|