🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fixbug: skill name
莘权 马69ef295b26f1
diff --git a/metagpt/roles/assistant.py b/metagpt/roles/assistant.pyindex c707cb6f1..0bce4a3f9 100644--- a/metagpt/roles/assistant.py+++ b/metagpt/roles/assistant.py@@ -57,7 +57,9 @@ class Assistant(Role):prompt = f"Refer to this sentence:\n {last_talk}\n"skills = self.skills.get_skill_list()for desc, name in skills.items():- prompt += f"If want you to do {desc}, return `[SKILL]: {name}` brief and clear. For instance: [SKILL]: text_to_image\n"+ prompt += (+ f"If want you to do {desc}, return `[SKILL]: {name}` brief and clear. For instance: [SKILL]: {name}\n"+ )prompt += "If the preceding text presents a complete question and solution, rewrite and return `[SOLUTION]: {problem}` brief and clear. For instance: [SOLUTION]: Solution for distributing watermelon\n"prompt += "If the preceding text presents an unresolved issue and its corresponding discussion, rewrite and return `[PROBLEM]: {problem}` brief and clear. For instance: [PROBLEM]: How to distribute watermelon?\n"prompt += "Otherwise, rewrite and return `[TALK]: {talk}` brief and clear. For instance: [TALK]: distribute watermelon"