Skip to content

Commit cd57708

Browse files
authored
Merge pull request #429 from Kaggle/wwolf_scripts
[Werewolf V0.2] Add experiment scripts
2 parents c574a74 + 595c935 commit cd57708

27 files changed

+3338
-0
lines changed

kaggle_environments/envs/werewolf/scripts/__init__.py

Whitespace-only changes.

kaggle_environments/envs/werewolf/scripts/add_audio.py

Lines changed: 425 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Settings for the dump_audio.py script
2+
server:
3+
port: 7999
4+
paths:
5+
audio_dir_name: "audio"
6+
debug_audio_dir_name: "debug_audio"
7+
output_html_filename: "replay.html"
8+
voices:
9+
moderator: "enceladus"
10+
players:
11+
Kai: 'Kore'
12+
Jordan: 'Charon'
13+
Charlie: 'Leda'
14+
Taylor: 'Despina'
15+
Alex: 'Erinome'
16+
Jamie: 'Gacrux'
17+
Quinn: 'Achird'
18+
Casey: 'Puck'
19+
audio:
20+
static_moderator_messages:
21+
night_begins: "(rate=\"fast\", volume=\"soft\", voice=\"mysterious\")[As darkness descends, the village falls silent.](rate=\"medium\", pitch=\"-2st\")[Everyone, close your eyes.]"
22+
day_begins: "(rate=\"fast\", volume=\"loud\")[Wake up, villagers!] (rate=\"medium\", voice=\"neutral\")[The sun rises on a new day.] (break=\"50ms\") (rate=\"medium\", voice=\"somber\")[Let's see who survived the night.]"
23+
discussion_begins: "(voice=\"authoritative\")[The town meeting now begins.] (voice=\"neutral\")[You have a few minutes to discuss and find the werewolves among you.] (voice=\"authoritative\")[Begin.]"
24+
voting_begins: "(rate=\"slow\", voice=\"serious\")[The time for talk is over.] (break=\"50ms\") (rate=\"medium\", volume=\"loud\", voice=\"dramatic\")[Now, you must cast your votes!]"
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Settings for the dump_audio.py script
2+
script_settings:
3+
server:
4+
port: 7999
5+
paths:
6+
audio_dir_name: "audio"
7+
debug_audio_dir_name: "debug_audio"
8+
output_html_filename: "replay.html"
9+
voices:
10+
moderator: "enceladus"
11+
players:
12+
gemini-2.5-flash: 'Kore'
13+
deepseek-r1: 'Charon'
14+
gpt-oss-120b: 'Leda'
15+
qwen3: 'Despina'
16+
"gpt-4.1": 'Erinome'
17+
"o4-mini": 'Gacrux'
18+
"gemini-2.5-pro": 'Achird'
19+
"grok-4": 'Puck'
20+
audio:
21+
static_moderator_messages:
22+
night_begins: "(rate=\"fast\", volume=\"soft\", voice=\"mysterious\")[As darkness descends, the village falls silent.](rate=\"medium\", pitch=\"-2st\")[Everyone, close your eyes.]"
23+
day_begins: "(rate=\"fast\", volume=\"loud\")[Wake up, villagers!] (rate=\"medium\", voice=\"neutral\")[The sun rises on a new day.] (break=\"50ms\") (rate=\"medium\", voice=\"somber\")[Let's see who survived the night.]"
24+
discussion_begins: "(voice=\"authoritative\")[The town meeting now begins.] (voice=\"neutral\")[You have a few minutes to discuss and find the werewolves among you.] (voice=\"authoritative\")[Begin.]"
25+
voting_begins: "(rate=\"slow\", voice=\"serious\")[The time for talk is over.] (break=\"50ms\") (rate=\"medium\", volume=\"loud\", voice=\"dramatic\")[Now, you must cast your votes!]"
26+
27+
# Configuration for the Werewolf game environment
28+
game_config:
29+
actTimeout: 300
30+
runTimeout: 3600
31+
discussion_protocol:
32+
name: "RoundRobinDiscussion"
33+
params:
34+
max_rounds: 1
35+
agents:
36+
- role: "Werewolf"
37+
id: "gemini-2.5-pro"
38+
thumbnail: "https://logos-world.net/wp-content/uploads/2025/01/Google-Gemini-Symbol.png"
39+
agent_id: "llm/gemini/gemini-2.5-pro"
40+
display_name: "gemini/gemini-2.5-pro"
41+
agent_harness_name: "llm_harness"
42+
llms:
43+
- model_name: "gemini/gemini-2.5-pro"
44+
- role: "Werewolf"
45+
id: "deepseek-r1"
46+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/deepseek-ai-icon-logo-png_seeklogo-611473.png"
47+
agent_id: "llm/together_ai/deepseek-ai/DeepSeek-R1"
48+
display_name: "together_ai/deepseek-ai/DeepSeek-R1"
49+
agent_harness_name: "llm_harness"
50+
llms:
51+
- model_name: "together_ai/deepseek-ai/DeepSeek-R1"
52+
parameters: { "max_tokens": 163839 }
53+
- role: "Doctor"
54+
id: "gpt-5"
55+
thumbnail: "https://images.seeklogo.com/logo-png/46/1/chatgpt-logo-png_seeklogo-465219.png"
56+
agent_id: "llm/gpt-5"
57+
display_name: "gpt-5"
58+
agent_harness_name: "llm_harness"
59+
llms:
60+
- model_name: "gpt-5"
61+
- role: "Seer"
62+
id: "qwen3"
63+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/qwen-icon-logo-png_seeklogo-611724.png"
64+
agent_id: "llm/together_ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput"
65+
display_name: "together_ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput"
66+
agent_harness_name: "llm_harness"
67+
llms:
68+
- model_name: "together_ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput"
69+
- role: "Villager"
70+
id: "claude-4-sonnet"
71+
thumbnail: "https://images.seeklogo.com/logo-png/55/1/claude-logo-png_seeklogo-554534.png"
72+
agent_id: "llm/claude-4-sonnet-20250514"
73+
display_name: "claude-4-sonnet-20250514"
74+
agent_harness_name: "llm_harness"
75+
llms:
76+
- model_name: "claude-4-sonnet-20250514"
77+
- role: "Villager"
78+
id: "zai-glm-4.5-air"
79+
thumbnail: "https://z-cdn.chatglm.cn/z-ai/static/logo.svg"
80+
agent_id: "llm/together_ai/zai-org/GLM-4.5-Air-FP8"
81+
display_name: "zai-glm-4.5-air"
82+
agent_harness_name: "llm_harness"
83+
llms:
84+
- model_name: "together_ai/zai-org/GLM-4.5-Air-FP8"
85+
parameters: { "max_tokens": 100000 }
86+
- role: "Villager"
87+
id: "kimi-k2"
88+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/kimi-logo-png_seeklogo-611650.png"
89+
agent_id: "llm/together_ai/moonshotai/Kimi-K2-Instruct"
90+
display_name: "kimi-k2"
91+
agent_harness_name: "llm_harness"
92+
llms:
93+
- model_name: "together_ai/moonshotai/Kimi-K2-Instruct"
94+
parameters: { "max_tokens": 100000 }
95+
- role: "Villager"
96+
id: "grok-4"
97+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/grok-logo-png_seeklogo-613403.png"
98+
agent_id: "llm/xai/grok-4-latest"
99+
display_name: "xai/grok-4-latest"
100+
agent_harness_name: "llm_harness"
101+
llms:
102+
- model_name: "xai/grok-4-latest"
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Configuration for the Werewolf game environment
2+
game_config:
3+
seed: 123
4+
actTimeout: 300
5+
runTimeout: 3600
6+
discussion_protocol:
7+
name: "TurnByTurnBiddingDiscussion"
8+
params:
9+
max_turns: 16
10+
bid_result_public: false
11+
day_voting_protocol:
12+
name: "SequentialVoting"
13+
werewolf_night_vote_protocol:
14+
name: "SequentialVoting"
15+
night_elimination_reveal_level: no_reveal
16+
day_exile_reveal_level: no_reveal
17+
agents:
18+
- role: "Werewolf"
19+
id: "gemini-2.5-flash"
20+
thumbnail: "https://logos-world.net/wp-content/uploads/2025/01/Google-Gemini-Symbol.png"
21+
agent_id: "llm_harness/gemini/gemini-2.5-flash"
22+
display_name: "gemini/gemini-2.5-flash"
23+
agent_harness_name: "llm_harness"
24+
chat_mode: "text"
25+
enable_bid_reasoning: false
26+
llms:
27+
- model_name: "gemini/gemini-2.5-flash"
28+
- role: "Werewolf"
29+
id: "deepseek-r1"
30+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/deepseek-ai-icon-logo-png_seeklogo-611473.png"
31+
agent_id: "llm_harness/together_ai/deepseek-ai/DeepSeek-R1"
32+
display_name: "together_ai/deepseek-ai/DeepSeek-R1"
33+
agent_harness_name: "llm_harness"
34+
chat_mode: "text"
35+
enable_bid_reasoning: false
36+
llms:
37+
- model_name: "together_ai/deepseek-ai/DeepSeek-R1"
38+
parameters: { "max_tokens": 163839 }
39+
- role: "Doctor"
40+
role_params:
41+
allow_self_save: true
42+
id: "gpt-oss-120b"
43+
thumbnail: "https://images.seeklogo.com/logo-png/46/1/chatgpt-logo-png_seeklogo-465219.png"
44+
agent_id: "llm_harness/together_ai/openai/gpt-oss-120b"
45+
display_name: "together_ai/openai/gpt-oss-120b"
46+
agent_harness_name: "llm_harness"
47+
chat_mode: "text"
48+
enable_bid_reasoning: false
49+
llms:
50+
- model_name: "together_ai/openai/gpt-oss-120b"
51+
- role: "Seer"
52+
id: "qwen3"
53+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/qwen-icon-logo-png_seeklogo-611724.png"
54+
agent_id: "llm_harness/together_ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput"
55+
display_name: "together_ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput"
56+
agent_harness_name: "llm_harness"
57+
chat_mode: "text"
58+
enable_bid_reasoning: false
59+
llms:
60+
- model_name: "together_ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput"
61+
- role: "Villager"
62+
id: "gpt-4.1"
63+
thumbnail: "https://images.seeklogo.com/logo-png/46/1/chatgpt-logo-png_seeklogo-465219.png"
64+
agent_id: "llm_harness/gpt-4.1"
65+
display_name: "gpt-4.1"
66+
agent_harness_name: "llm_harness"
67+
chat_mode: "text"
68+
enable_bid_reasoning: false
69+
llms:
70+
- model_name: "gpt-4.1"
71+
- role: "Villager"
72+
id: "o4-mini"
73+
thumbnail: "https://images.seeklogo.com/logo-png/46/1/chatgpt-logo-png_seeklogo-465219.png"
74+
agent_id: "llm_harness/o4-mini"
75+
display_name: "o4-mini"
76+
agent_harness_name: "llm_harness"
77+
chat_mode: "text"
78+
enable_bid_reasoning: false
79+
llms:
80+
- model_name: "o4-mini"
81+
- role: "Villager"
82+
id: "gemini-2.5-pro"
83+
thumbnail: "https://logos-world.net/wp-content/uploads/2025/01/Google-Gemini-Symbol.png"
84+
agent_id: "llm_harness/gemini/gemini-2.5-pro"
85+
display_name: "gemini/gemini-2.5-pro"
86+
agent_harness_name: "llm_harness"
87+
chat_mode: "text"
88+
enable_bid_reasoning: false
89+
llms:
90+
- model_name: "gemini/gemini-2.5-pro"
91+
- role: "Villager"
92+
id: "grok-4"
93+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/grok-logo-png_seeklogo-613403.png"
94+
agent_id: "llm_harness/xai/grok-4-latest"
95+
display_name: "xai/grok-4-latest"
96+
agent_harness_name: "llm_harness"
97+
chat_mode: "text"
98+
enable_bid_reasoning: false
99+
llms:
100+
- model_name: "xai/grok-4-latest"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Configuration for the Werewolf game environment
2+
game_config:
3+
seed: 123
4+
actTimeout: 900
5+
runTimeout: 7200
6+
discussion_protocol:
7+
name: "RoundRobinDiscussion"
8+
params:
9+
max_rounds: 2
10+
assign_random_first_speaker: true
11+
day_voting_protocol:
12+
name: "SequentialVoting"
13+
params:
14+
assign_random_first_voter: true
15+
werewolf_night_vote_protocol:
16+
name: "SequentialVoting"
17+
params:
18+
assign_random_first_voter: true
19+
night_elimination_reveal_level: role
20+
day_exile_reveal_level: role
21+
agents:
22+
- role: "Werewolf"
23+
id: "Kai"
24+
thumbnail: "https://logos-world.net/wp-content/uploads/2025/01/Google-Gemini-Symbol.png"
25+
agent_id: "llm/gemini/gemini-2.5-pro"
26+
display_name: "gemini-2.5-pro"
27+
agent_harness_name: "llm_harness"
28+
chat_mode: "text"
29+
enable_bid_reasoning: false
30+
llms:
31+
- model_name: "gemini/gemini-2.5-pro"
32+
- role: "Werewolf"
33+
id: "Jordan"
34+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/deepseek-ai-icon-logo-png_seeklogo-611473.png"
35+
agent_id: "llm/openrouter/deepseek/deepseek-chat-v3.1"
36+
display_name: "deepseek-chat-v3.1"
37+
agent_harness_name: "llm_harness"
38+
chat_mode: "text"
39+
enable_bid_reasoning: false
40+
llms:
41+
- model_name: "openrouter/deepseek/deepseek-chat-v3.1"
42+
- role: "Doctor"
43+
role_params:
44+
allow_self_save: false
45+
allow_consecutive_saves: false
46+
id: "Charlie"
47+
thumbnail: "https://images.seeklogo.com/logo-png/46/1/chatgpt-logo-png_seeklogo-465219.png"
48+
agent_id: "llm/openrouter/openai/gpt-5"
49+
display_name: "gpt-5"
50+
agent_harness_name: "llm_harness"
51+
chat_mode: "text"
52+
enable_bid_reasoning: false
53+
llms:
54+
- model_name: "openrouter/openai/gpt-5"
55+
- role: "Seer"
56+
id: "Taylor"
57+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/qwen-icon-logo-png_seeklogo-611724.png"
58+
agent_id: "llm/openrouter/qwen/qwen3-235b-a22b-2507"
59+
display_name: "qwen3-235b"
60+
agent_harness_name: "llm_harness"
61+
chat_mode: "text"
62+
enable_bid_reasoning: false
63+
llms:
64+
- model_name: "openrouter/qwen/qwen3-235b-a22b-2507"
65+
- role: "Villager"
66+
id: "Alex"
67+
thumbnail: "https://z-cdn.chatglm.cn/z-ai/static/logo.svg"
68+
agent_id: "llm/openrouter/z-ai/glm-4.5"
69+
display_name: "glm-4.5"
70+
agent_harness_name: "llm_harness"
71+
chat_mode: "text"
72+
enable_bid_reasoning: false
73+
llms:
74+
- model_name: "openrouter/z-ai/glm-4.5"
75+
- role: "Villager"
76+
id: "Jamie"
77+
thumbnail: "https://images.seeklogo.com/logo-png/46/1/chatgpt-logo-png_seeklogo-465219.png"
78+
agent_id: "llm/openrouter/openai/gpt-4.1"
79+
display_name: "gpt-4.1"
80+
agent_harness_name: "llm_harness"
81+
chat_mode: "text"
82+
enable_bid_reasoning: false
83+
llms:
84+
- model_name: "openrouter/openai/gpt-4.1"
85+
- role: "Villager"
86+
id: "Quinn"
87+
thumbnail: "https://images.seeklogo.com/logo-png/55/1/claude-logo-png_seeklogo-554534.png"
88+
agent_id: "llm/openrouter/anthropic/claude-sonnet-4"
89+
display_name: "claude-sonnet-4"
90+
agent_harness_name: "llm_harness"
91+
chat_mode: "text"
92+
enable_bid_reasoning: false
93+
llms:
94+
- model_name: "openrouter/claude-sonnet-4"
95+
- role: "Villager"
96+
id: "Casey"
97+
thumbnail: "https://images.seeklogo.com/logo-png/61/1/grok-logo-png_seeklogo-613403.png"
98+
agent_id: "llm/openrouter/x-ai/grok-4"
99+
display_name: "grok-4"
100+
agent_harness_name: "llm_harness"
101+
chat_mode: "text"
102+
enable_bid_reasoning: false
103+
llms:
104+
- model_name: "openrouter/x-ai/grok-4"

0 commit comments

Comments
 (0)