Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: patch block edit error (#1691)
Sarah Woodersedcb89cc5066
diff --git a/memgpt/agent.py b/memgpt/agent.pyindex b11497a2d..0625156c8 100644--- a/memgpt/agent.py+++ b/memgpt/agent.py@@ -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