We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da710e commit 53afe14Copy full SHA for 53afe14
metagpt/utils/serialize.py
@@ -4,7 +4,7 @@
4
5
import copy
6
import pickle
7
-from typing import Dict, List, Tuple
+from typing import Dict, List
8
9
from metagpt.actions.action_output import ActionOutput
10
from metagpt.schema import Message
@@ -38,7 +38,7 @@ def actionoutout_schema_to_mapping(schema: Dict) -> Dict:
38
mapping[field] = (List[str], ...)
39
elif property["type"] == "array" and property["items"]["type"] == "array":
40
# here only consider the `Tuple[str, str]` situation
41
- mapping[field] = (List[Tuple[str, str]], ...)
+ mapping[field] = (List[List[str]], ...)
42
return mapping
43
44
0 commit comments