Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: only parse user message (#846)
cthomas13917b326e57
diff --git a/letta/system.py b/letta/system.pyindex a13e36f1e..21c29c9eb 100644--- a/letta/system.py+++ b/letta/system.py@@ -224,4 +224,7 @@ def unpack_message(packed_message) -> str:warnings.warn(f"Was unable to find 'message' field in packed message object: '{packed_message}'")return packed_messageelse:+ 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_messagereturn message_json.get("message")