Skip to content

Commit 53afe14

Browse files
committed
fix ltm serialize_message
1 parent 7da710e commit 53afe14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metagpt/utils/serialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import copy
66
import pickle
7-
from typing import Dict, List, Tuple
7+
from typing import Dict, List
88

99
from metagpt.actions.action_output import ActionOutput
1010
from metagpt.schema import Message
@@ -38,7 +38,7 @@ def actionoutout_schema_to_mapping(schema: Dict) -> Dict:
3838
mapping[field] = (List[str], ...)
3939
elif property["type"] == "array" and property["items"]["type"] == "array":
4040
# here only consider the `Tuple[str, str]` situation
41-
mapping[field] = (List[Tuple[str, str]], ...)
41+
mapping[field] = (List[List[str]], ...)
4242
return mapping
4343

4444

0 commit comments

Comments
 (0)