Memory / history fixes
All checks were successful
Publish Library / Build NPM Project (push) Successful in 52s
Publish Library / Tag Version (push) Successful in 14s

This commit is contained in:
2026-06-07 21:35:26 -04:00
parent 7dd3307a07
commit 51ab8f2538
4 changed files with 44 additions and 37 deletions

View File

@@ -17,5 +17,9 @@ const skills = [{
}];
const history = [], memory = [];
console.log(await ai.language.ask('Can you tell me how to use momentum?', {history, skills}));
console.log(history, memory);
await ai.language.ask('My favorite color is red', {history, memory});
await ai.language.updateMemory(history, memory);
history.splice(0, history.length);
console.log(await ai.language.ask('Whats my favorite color?', {history, memory}));
console.log(history);