Skip to content

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

refactor: think

莘权 马e2ffba863127
diff --git a/metagpt/roles/assistant.py b/metagpt/roles/assistant.py
index c0d1c3240..86a27cb18 100644
--- a/metagpt/roles/assistant.py
+++ b/metagpt/roles/assistant.py
@@ -58,7 +58,9 @@ class Assistant(Role):
skills = self.skills.get_skill_list()
for desc, name in skills.items():
prompt += f"If explicitly want you to do {desc}, return `[SKILL]: {name}` brief and clear. For instance: [SKILL]: {name}\n"
- prompt += "Otherwise, return `[TALK]: {talk}` brief and clear. For instance: [TALK]: distribute watermelon"
+ prompt += (
+ 'Otherwise, return `[TALK]: {talk}` brief and clear. For instance: if {talk} is "xxxx" return [TALK]: xxxx'
+ )
logger.info(prompt)
rsp = await self._llm.aask(prompt, [])
logger.info(rsp)