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.

Revert "fix: only parse user message" (#851)

Shubham Naik640500e0fd1d
diff --git a/letta/system.py b/letta/system.py
index 21c29c9eb..a13e36f1e 100644
--- a/letta/system.py
+++ b/letta/system.py
@@ -224,7 +224,4 @@ def unpack_message(packed_message) -> str:
warnings.warn(f"Was unable to find 'message' field in packed message object: '{packed_message}'")
return packed_message
else:
- if "type" != "user_message":
- warnings.warn(f"Expected 'type' to be 'user_message', but was '{message_json['type']}', so not unpacking: '{packed_message}'")
- return packed_message
return message_json.get("message")