@psm-memory/sdk
v0.1.2
Published
Local-first SDK for PSM Memory storage, grounded recall, embeddings, config, and model-backed memory decisions.
Maintainers
Readme
@psm-memory/sdk
TypeScript SDK for PSM Memory routing, SQLite storage, grounded recall, shared config, embeddings, and local GGUF runtimes.
import { MemoryStore, NodeLlamaRuntime, PsmService } from "@psm-memory/sdk";NodeLlamaRuntime uses node-llama-cpp when a GGUF model path is provided.
Core guarantees:
- PSM may plan retrieval and render agent context, but rendered context is validated against selected DB rows before injection.
- If context rendering is invalid or ungrounded, the SDK falls back to complete stored statements instead of hard-truncating raw memories.
- Shared config resolves the per-user memory directory, default user id, embedding settings, runtime settings, and daemon behavior.
TraceModelRuntimecan write opt-in local JSONL traces with full PSM prompts and raw outputs for debugging and feedback collection.- User content stays in SQLite; model weights do not store private memory.
