Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Merge branch 'dev' of https://github.com/geekan/MetaGPT into geekan/dev

莘权 马ef1bc01c99e5
diff --cc metagpt/actions/skill_action.py
index 21bfc766f,292202294..301cebaab
--- a/metagpt/actions/skill_action.py
+++ b/metagpt/actions/skill_action.py
@@@ -14,12 -14,12 +14,13 @@@ import tracebac
from copy import deepcopy
from typing import Dict, Optional
-from metagpt.actions import Action, ActionOutput
+from metagpt.actions import Action
from metagpt.learn.skill_loader import Skill
from metagpt.logs import logger
+from metagpt.schema import Message
+ # TOTEST
class ArgumentsParingAction(Action):
skill: Skill
ask: str
diff --cc metagpt/actions/talk_action.py
index 3d8fdffc7,1c22e86de..dc127109c
--- a/metagpt/actions/talk_action.py
+++ b/metagpt/actions/talk_action.py
@@@ -6,20 -6,27 +6,21 @@@
@File : talk_action.py
@Desc : Act as it’s a talk
"""
-import json
+from typing import Optional
-from metagpt.actions import Action, ActionOutput
+from metagpt.actions import Action
from metagpt.config import CONFIG
from metagpt.const import DEFAULT_LANGUAGE
-from metagpt.llm import LLMType
from metagpt.logs import logger
+from metagpt.schema import Message
+ # TOTEST
class TalkAction(Action):
- def __init__(self, name: str = "", talk="", history_summary="", knowledge="", context=None, llm=None, **kwargs):
- context = context or {}
- context["talk"] = talk
- context["history_summery"] = history_summary
- context["knowledge"] = knowledge
- super(TalkAction, self).__init__(name=name, context=context, llm=llm)
- self._talk = talk
- self._history_summary = history_summary
- self._knowledge = knowledge
- self._rsp = None
+ context: str
+ history_summary: str = ""
+ knowledge: str = ""
+ rsp: Optional[Message] = None
@property
def prompt(self):