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

This commit is contained in:
Shubham Naik
2025-01-30 09:43:50 -08:00
committed by GitHub
parent 36e831c3a3
commit 22c4c499a6

View File

@@ -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")