@cerememory/sdk
v0.2.2
Published
TypeScript HTTP client SDK for the Cerememory REST API
Maintainers
Readme
Cerememory TypeScript SDK
TypeScript/Node.js bindings for Cerememory.
Features
- High-level
store(),recall(),forget(), andstats()helpers - Full CMP protocol access, including
encodeStore,recallQuery, and lifecycle APIs store()supportsmetadataandemotionwiringrecall()supportsreconsolidateandactivation_depth- Retries are opt-in; the default is
maxRetries: 0 - Native package support via
@cerememory/native
Example
import { CerememoryClient } from "@cerememory/sdk";
const client = new CerememoryClient("http://localhost:8420");
const id = await client.store("Coffee chat with Alice", {
store: "episodic",
metadata: { source: "chat" },
});
const memories = await client.recall("coffee", {
limit: 5,
reconsolidate: false,
activation_depth: 4,
});