Updates
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
require('bare-process/global')
|
||||
const { HyperP2PAgentMemory } = require('../index.js')
|
||||
|
||||
async function main () {
|
||||
const mem = new HyperP2PAgentMemory({ enableSigning: true })
|
||||
await mem.storeMemory({ note: 'wave agent memory demo' }, { tags: ['demo'] })
|
||||
const hits = await mem.recall({ tags: ['demo'], limit: 5 })
|
||||
console.log('[agent-memory]', hits.length, mem.getStats())
|
||||
await mem.close()
|
||||
}
|
||||
main().catch(console.error)
|
||||
Reference in New Issue
Block a user