Log inGet started
Package

memory.toolbox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

edit

Change one part of a memory: the one occurrence of old in its body becomes new, and the description changes too when one is given. It takes no revision: it changes what the body says now, so agents working on different parts of an entry (ticking off different items of a progress list) never overwrite each other. scope = "personal" edits a personal memory, which the person is shown.

When old is not in the body, the answer is ok = false with the current entry to edit again; when it occurs more than once, include more of the text around it. The version an edit replaces is kept.

For example, an agent that finished the boss arena ticks it off in progress, replacing "- [ ] boss arena" with "- [x] boss arena".