Spaces:
Running
Running
茂道
commited on
Commit
·
2d17407
1
Parent(s):
28f745f
update
Browse files- .idea/werewolf_1.iml +10 -0
- .idea/workspace.xml +4 -2
- werewolf/app.py +5 -5
- werewolf/hunter/hunter_agent.py +1 -1
- werewolf/seer/seer_agent.py +1 -1
- werewolf/villager/villager_agent.py +1 -1
- werewolf/witch/witch_agent.py +1 -1
- werewolf/wolf/wolf_agent.py +1 -1
.idea/werewolf_1.iml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="PYTHON_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager">
|
4 |
+
<content url="file://$MODULE_DIR$">
|
5 |
+
<sourceFolder url="file://$MODULE_DIR$/werewolf" isTestSource="false" />
|
6 |
+
</content>
|
7 |
+
<orderEntry type="jdk" jdkName="Python 3.10 (venv) (3)" jdkType="Python SDK" />
|
8 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
9 |
+
</component>
|
10 |
+
</module>
|
.idea/workspace.xml
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
<component name="ChangeListManager">
|
4 |
-
<list default="true" id="be0bdb17-6f52-4720-b934-341fa7978d29" name="Changes" comment=""
|
|
|
|
|
5 |
<option name="SHOW_DIALOG" value="false" />
|
6 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
7 |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
@@ -68,7 +70,7 @@
|
|
68 |
<option name="number" value="Default" />
|
69 |
<option name="presentableId" value="Default" />
|
70 |
<updated>1745132074997</updated>
|
71 |
-
<workItem from="1745132078229" duration="
|
72 |
</task>
|
73 |
<servers />
|
74 |
</component>
|
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
<component name="ChangeListManager">
|
4 |
+
<list default="true" id="be0bdb17-6f52-4720-b934-341fa7978d29" name="Changes" comment="">
|
5 |
+
<change beforePath="$PROJECT_DIR$/werewolf/hunter/hunter_agent.py" beforeDir="false" afterPath="$PROJECT_DIR$/werewolf/hunter/hunter_agent.py" afterDir="false" />
|
6 |
+
</list>
|
7 |
<option name="SHOW_DIALOG" value="false" />
|
8 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
9 |
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
|
70 |
<option name="number" value="Default" />
|
71 |
<option name="presentableId" value="Default" />
|
72 |
<updated>1745132074997</updated>
|
73 |
+
<workItem from="1745132078229" duration="1113000" />
|
74 |
</task>
|
75 |
<servers />
|
76 |
</component>
|
werewolf/app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import os
|
2 |
|
3 |
from agent_build_sdk.builder import AgentBuilder
|
4 |
-
from
|
5 |
-
from
|
6 |
-
from
|
7 |
-
from
|
8 |
-
from
|
9 |
from agent_build_sdk.model.roles import ROLE_VILLAGER,ROLE_WOLF,ROLE_SEER,ROLE_WITCH,ROLE_HUNTER
|
10 |
from agent_build_sdk.sdk.werewolf_agent import WerewolfAgent
|
11 |
|
|
|
1 |
import os
|
2 |
|
3 |
from agent_build_sdk.builder import AgentBuilder
|
4 |
+
from hunter.hunter_agent import HunterAgent
|
5 |
+
from seer.seer_agent import SeerAgent
|
6 |
+
from villager.villager_agent import VillagerAgent
|
7 |
+
from witch.witch_agent import WitchAgent
|
8 |
+
from wolf.wolf_agent import WolfAgent
|
9 |
from agent_build_sdk.model.roles import ROLE_VILLAGER,ROLE_WOLF,ROLE_SEER,ROLE_WITCH,ROLE_HUNTER
|
10 |
from agent_build_sdk.sdk.werewolf_agent import WerewolfAgent
|
11 |
|
werewolf/hunter/hunter_agent.py
CHANGED
@@ -5,7 +5,7 @@ from agent_build_sdk.model.werewolf_model import AgentResp, AgentReq, STATUS_STA
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
-
from
|
9 |
|
10 |
|
11 |
class HunterAgent(BasicRoleAgent):
|
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
+
from hunter.prompt import DESC_PROMPT, VOTE_PROMPT, SKILL_PROMPT
|
9 |
|
10 |
|
11 |
class HunterAgent(BasicRoleAgent):
|
werewolf/seer/seer_agent.py
CHANGED
@@ -5,7 +5,7 @@ from agent_build_sdk.model.werewolf_model import AgentResp, AgentReq, STATUS_STA
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
-
from
|
9 |
|
10 |
|
11 |
class SeerAgent(BasicRoleAgent):
|
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
+
from seer.prompt import DESC_PROMPT, VOTE_PROMPT, SKILL_PROMPT
|
9 |
|
10 |
|
11 |
class SeerAgent(BasicRoleAgent):
|
werewolf/villager/villager_agent.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
from
|
2 |
from agent_build_sdk.model.roles import ROLE_VILLAGER
|
3 |
from agent_build_sdk.model.werewolf_model import AgentResp, AgentReq, STATUS_START, STATUS_WOLF_SPEECH, \
|
4 |
STATUS_VOTE_RESULT, STATUS_SKILL, STATUS_SKILL_RESULT, STATUS_NIGHT_INFO, STATUS_DAY, STATUS_DISCUSS, STATUS_VOTE, \
|
|
|
1 |
+
from villager.prompt import DESC_PROMPT, VOTE_PROMPT
|
2 |
from agent_build_sdk.model.roles import ROLE_VILLAGER
|
3 |
from agent_build_sdk.model.werewolf_model import AgentResp, AgentReq, STATUS_START, STATUS_WOLF_SPEECH, \
|
4 |
STATUS_VOTE_RESULT, STATUS_SKILL, STATUS_SKILL_RESULT, STATUS_NIGHT_INFO, STATUS_DAY, STATUS_DISCUSS, STATUS_VOTE, \
|
werewolf/witch/witch_agent.py
CHANGED
@@ -5,7 +5,7 @@ from agent_build_sdk.model.werewolf_model import AgentResp, AgentReq, STATUS_STA
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
-
from
|
9 |
|
10 |
|
11 |
class WitchAgent(BasicRoleAgent):
|
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
+
from witch.prompt import DESC_PROMPT, VOTE_PROMPT, SKILL_PROMPT
|
9 |
|
10 |
|
11 |
class WitchAgent(BasicRoleAgent):
|
werewolf/wolf/wolf_agent.py
CHANGED
@@ -5,7 +5,7 @@ from agent_build_sdk.model.werewolf_model import AgentResp, AgentReq, STATUS_STA
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
-
from
|
9 |
|
10 |
|
11 |
class WolfAgent(BasicRoleAgent):
|
|
|
5 |
from agent_build_sdk.utils.logger import logger
|
6 |
from agent_build_sdk.sdk.role_agent import BasicRoleAgent
|
7 |
from agent_build_sdk.sdk.agent import format_prompt
|
8 |
+
from wolf.prompt import DESC_PROMPT, VOTE_PROMPT, KILL_PROMPT, WOLF_SPEECH_PROMPT
|
9 |
|
10 |
|
11 |
class WolfAgent(BasicRoleAgent):
|