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.

Shelley/let 7155 favorites tagged should be user scoped [LET-7155] (#9003)

Shelley Pham4353df683e2b
diff --git a/tests/test_client.py b/tests/test_client.py
index 55ceeb0b6..7c3b0d087 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -300,10 +300,12 @@ def test_agent_tags(client: Letta, clear_tables):
# Test getting all tags
all_tags = client.tags.list()
+ # Filter out dynamic favorite:user tags since they contain user-specific UUIDs
+ all_tags_filtered = [tag for tag in all_tags if not tag.startswith("favorite:user:")]
expected_tags = ["agent1", "agent2", "agent3", "development", "origin:letta-chat", "production", "test", "view:letta-chat"]
print("ALL TAGS", all_tags)
print("EXPECTED TAGS", expected_tags)
- assert sorted(all_tags) == expected_tags
+ assert sorted(all_tags_filtered) == expected_tags
# Test pagination
paginated_tags = client.tags.list(limit=2)