feat(oss): accept text in Memory.update(), deprecate data (#6044)

This commit is contained in:
Kartik
2026-07-09 19:32:51 +05:30
committed by GitHub
parent 5dbf071356
commit 99206f0c64
17 changed files with 657 additions and 81 deletions
+3 -4
View File
@@ -73,10 +73,9 @@ async function runTests(memory: Memory) {
}
// Updating this memory
const result4 = await memory.update(
result1.results[0].id,
"I love India, it is my favorite country.",
);
const result4 = await memory.update(result1.results[0].id, {
text: "I love India, it is my favorite country.",
});
console.log("Updated memory:", result4);
// Get all memories