🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix ltm serialize_message
femto53afe146b818
diff --git a/metagpt/utils/serialize.py b/metagpt/utils/serialize.pyindex ffafca8cd..943def839 100644--- a/metagpt/utils/serialize.py+++ b/metagpt/utils/serialize.py@@ -4,7 +4,7 @@import copyimport pickle-from typing import Dict, List, Tuple+from typing import Dict, Listfrom metagpt.actions.action_output import ActionOutputfrom metagpt.schema import Message@@ -38,7 +38,7 @@ def actionoutout_schema_to_mapping(schema: Dict) -> Dict:mapping[field] = (List[str], ...)elif property["type"] == "array" and property["items"]["type"] == "array":# here only consider the `Tuple[str, str]` situation- mapping[field] = (List[Tuple[str, str]], ...)+ mapping[field] = (List[List[str]], ...)return mapping