fix: patch block edit error (#1691)

This commit is contained in:
Sarah Wooders
2024-08-27 16:06:23 -07:00
committed by GitHub
parent 8029d33b62
commit edcb89cc50

View File

@@ -1017,7 +1017,7 @@ class Agent(object):
printd(f"skipping block update, unexpected value: {block_id=}")
continue
# TODO: we may want to update which columns we're updating from shared memory e.g. the limit
self.memory.update_block_value(name=block.get("name", ""), value=db_block.value)
self.memory.update_block_value(name=block.get("label", ""), value=db_block.value)
# If the memory didn't update, we probably don't want to update the timestamp inside
# For example, if we're doing a system prompt swap, this should probably be False