Update multi_agent.py
Browse files- multi_agent.py +5 -5
multi_agent.py
CHANGED
@@ -73,7 +73,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
73 |
name="Board Proxy",
|
74 |
llm_config=False,
|
75 |
is_termination_msg=check_made_move,
|
76 |
-
default_auto_reply="
|
77 |
human_input_mode="NEVER",
|
78 |
)
|
79 |
|
@@ -164,15 +164,15 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
164 |
player = "Player White"
|
165 |
|
166 |
if num_move > 0:
|
167 |
-
result += f"**{player}, Move {num_move}
|
168 |
|
169 |
num_move += 1
|
170 |
|
171 |
if num_moves % 2 == 0 and num_move == num_moves + 1:
|
172 |
break
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
|
178 |
return result
|
|
|
73 |
name="Board Proxy",
|
74 |
llm_config=False,
|
75 |
is_termination_msg=check_made_move,
|
76 |
+
default_auto_reply="TERMINATE",
|
77 |
human_input_mode="NEVER",
|
78 |
)
|
79 |
|
|
|
164 |
player = "Player White"
|
165 |
|
166 |
if num_move > 0:
|
167 |
+
result += f"**{player}, Move {num_move}**\n{chat.get('content')}\n{board_svgs[num_move - 1]}\n\n"
|
168 |
|
169 |
num_move += 1
|
170 |
|
171 |
if num_moves % 2 == 0 and num_move == num_moves + 1:
|
172 |
break
|
173 |
|
174 |
+
print("===")
|
175 |
+
print(result)
|
176 |
+
print("===")
|
177 |
|
178 |
return result
|