Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: patched another test that used dummy user_id's to instead use the default user_id

cpacker5799d4ab3651
diff --git a/tests/test_agent_function_update.py b/tests/test_agent_function_update.py
index e42d7fc55..d590cbb91 100644
--- a/tests/test_agent_function_update.py
+++ b/tests/test_agent_function_update.py
@@ -2,7 +2,10 @@ from collections import UserDict
import json
import os
import inspect
+import uuid
+
from memgpt import MemGPT
+from memgpt.config import MemGPTConfig
from memgpt import constants
import memgpt.functions.function_sets.base as base_functions
from memgpt.functions.functions import USER_FUNCTIONS_DIR
@@ -39,7 +42,10 @@ def agent():
}
)
- return client.server._get_or_load_agent(user_id="NULL", agent_id=agent_state.id)
+ config = MemGPTConfig.load()
+ user_id = uuid.UUID(config.anon_clientid)
+
+ return client.server._get_or_load_agent(user_id=user_id, agent_id=agent_state.id)
@pytest.fixture(scope="module")