mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-04 13:22:39 +02:00
commit
a36d46d6b9
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ from metagpt.logs import logger
|
|||
|
||||
|
||||
class TalkAction(Action):
|
||||
def __init__(self, name: str = '', talk='', history_summary='', knowledge='', context=None, llm=None, **kwargs):
|
||||
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
|
||||
|
|
@ -32,7 +32,7 @@ class TalkAction(Action):
|
|||
if self._history_summary != "":
|
||||
prompt += "According to the historical conversation above, "
|
||||
language = CONFIG.language or DEFAULT_LANGUAGE
|
||||
prompt += f"Answer in {language}:\n {self._talk}"
|
||||
prompt += f"Answer in {language}, and the answers must follow the Markdown format.\n {self._talk}"
|
||||
return prompt
|
||||
|
||||
async def run(self, *args, **kwargs) -> ActionOutput:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue