tikuu-memory
Python SDK for Tikuu short-term memory: HTTP client for
tikuu-memory-service and a LangGraph
BaseCheckpointSaver (TikuuMemorySaver).
Requirements
- Python 3.13+
- uv
- A running
tikuu-memory-service
Install
uv add tikuu-memory
Env (required)
| Variable | Meaning |
|---|---|
TIKUU_MEMORY_SERVICE_URL |
Memory service base URL (no trailing slash) |
TIKUU_AGENT_ID |
Agent UUID used as the storage partition |
TikuuMemorySaver.from_env() / TikuuMemoryClient.from_env() raise
MemoryConfigurationError if either is missing or blank.
Inside Docker agent containers, tikuu-api-server injects both. For host-local
runs use e.g. http://127.0.0.1:8100.
Usage
from tikuu_memory import TikuuMemorySaver
checkpointer = TikuuMemorySaver.from_env()
# pass checkpointer into create_agent(..., checkpointer=checkpointer)
config = {"configurable": {"thread_id": session_id}}
The CLI template sets thread_id to the Tikuu X-Session-Id. The saver
never forces that mapping; any thread_id string is accepted.
Storage key: (agent_id, thread_id, checkpoint_ns).
Session-id-as-thread-id caveats
When using the Tikuu session UUID as thread_id:
- Omitting
X-Session-Idon a later call mints a new session → new empty thread. - One session ⇒ one LangGraph thread ⇒ one container
{agent_id}--{session_id}. - Concurrent invokes on the same session race (last snapshot wins); use one in-flight invoke per session.
- Custom
thread_idvalues are allowed in user code.
V1 limitations
- Snapshot-only storage (intentional).
put_writesis a no-op so LangGraph does not crash; interrupt/resume and mid-step crash recovery are not supported yet.- Metadata
filteronlistis ignored. - No auth headers.
Deferred work
- TODO(auth): Send session token header when API server injects one.
- TODO(writes): Persist pending writes for interrupt/resume.
- TODO(actor_id): Optional end-user / tenant key.
- TODO(legacy): Non-snapshot event-log formats.
- TODO(serde): Prefer JSON-only serde if pickle via JsonPlus is undesirable.
Docs
Metadata
Release files for tikuu-memory 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tikuu_memory-0.1.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tikuu_memory-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / tikuu_memory-0.1.0.tar.gz
| Download URL | tikuu_memory-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6313113302eb9dc61d2f3337b8bf0733ee5c407eeba59e9f95646963202ced2
|
|
BLAKE2b-256 checksum How to use checksums |
b1a0ba02abf430bb51abc9b8cc326e7935e6084ebd3e534404970cc06e59c911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / tikuu_memory-0.1.0-py3-none-any.whl
| Download URL | tikuu_memory-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d1d061d811ba2fb84dd5cdfb5574e8353f2dec64c83f4c14d970d4e18ea910d
|
|
BLAKE2b-256 checksum How to use checksums |
eb53393af3d3c1c2fd4cb6c24ccb9f3f130601f8571966a129aa7490ccb49f51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|