UNPKG

recallbricks-sdk

Version:

TypeScript SDK for writing memory chunks to RecallBricks persistent memory infrastructure.

23 lines (18 loc) 590 B
import dotenv from "dotenv"; dotenv.config({ path: ".env.local" }); import { RecallBricks } from "../sdk/js/recallbricks-sdk"; async function testRecallBricks() { try { const result = await RecallBricks.write({ userId: "tyler001", projectId: "recallbricks-test", text: "🔥 This is a test chunk from SDK test with full fields", type: "note", tags: ["test", "sdk"], }); console.log("✅ Write result:", result); } catch (err) { console.error("🔥 Error running testRecallBricks:", err); } } testRecallBricks();