feat(oss): accept text in Memory.update(), deprecate data (#6044)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user