Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: unpacking non json values (#2684)
Andy Li71fcbbc86398
diff --git a/letta/system.py b/letta/system.pyindex dd9cae789..05b83c08f 100644--- a/letta/system.py+++ b/letta/system.py@@ -218,11 +218,13 @@ def get_token_limit_warning():return json_dumps(packaged_message)-def unpack_message(packed_message) -> str:+def unpack_message(packed_message: str) -> str:"""Take a packed message string and attempt to extract the inner message content"""try:message_json = json.loads(packed_message)+ if type(message_json) is not dict:+ return packed_messageexcept:return packed_message