From b8743fc8906675bb66201e9dd23ca1b25d934f28 Mon Sep 17 00:00:00 2001 From: MrL <332199893@qq.com> Date: Wed, 4 Oct 2023 11:12:23 +0800 Subject: [PATCH] Changes --- .../werewolf_game/actions/common_actions.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/examples/werewolf_game/actions/common_actions.py b/examples/werewolf_game/actions/common_actions.py index 84936ebde..e69de29bb 100644 --- a/examples/werewolf_game/actions/common_actions.py +++ b/examples/werewolf_game/actions/common_actions.py @@ -1,30 +0,0 @@ -from metagpt.actions import Action - -class Speak(Action): - """Action: Any speak action in a game""" - - PROMPT_TEMPLATE = """ - ## BACKGROUND - It's a Werewolf game, you are {profile}, say whatever possible to increase your chance of win, - ## HISTORY - You have knowledge to the following conversation: - {context} - ## YOUR TURN - Please follow the moderator's latest instruction, FIGURE OUT if you need to speak your opinion or directly to vote, - 1. If the instruction is to speak, speak in 100 words; - 2. If the instruction is to vote, you MUST vote and ONLY say "I vote to eliminate PlayerX", where X is the player index, DO NOT include any other words. - Your will say: - """ - - def __init__(self, name="Speak", context=None, llm=None): - super().__init__(name, context, llm) - - async def run(self, context: str, profile: str): - - prompt = self.PROMPT_TEMPLATE.format(context=context, profile=profile) - - rsp = await self._aask(prompt) - - return rsp - -