Update multi_agent.py
Browse files- multi_agent.py +6 -4
multi_agent.py
CHANGED
@@ -74,7 +74,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
74 |
llm_config=False,
|
75 |
is_termination_msg=check_made_move,
|
76 |
default_auto_reply="Please make a move.",
|
77 |
-
human_input_mode="NEVER"
|
78 |
)
|
79 |
|
80 |
player_white = ConversableAgent(
|
@@ -84,6 +84,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
84 |
"Then call make_move(move) to make a legal move. "
|
85 |
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format, unordered list.",
|
86 |
llm_config=llm_config_white,
|
|
|
87 |
)
|
88 |
|
89 |
player_black = ConversableAgent(
|
@@ -93,6 +94,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
93 |
"Then call make_move(move) to make a legal move. "
|
94 |
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format, unordered list.",
|
95 |
llm_config=llm_config_black,
|
|
|
96 |
)
|
97 |
|
98 |
for caller in [player_white, player_black]:
|
@@ -171,8 +173,8 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
171 |
if num_moves % 2 == 0 and num_move == num_moves + 1:
|
172 |
break
|
173 |
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
|
178 |
return result
|
|
|
74 |
llm_config=False,
|
75 |
is_termination_msg=check_made_move,
|
76 |
default_auto_reply="Please make a move.",
|
77 |
+
human_input_mode="NEVER"
|
78 |
)
|
79 |
|
80 |
player_white = ConversableAgent(
|
|
|
84 |
"Then call make_move(move) to make a legal move. "
|
85 |
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format, unordered list.",
|
86 |
llm_config=llm_config_white,
|
87 |
+
default_auto_reply="TERMINATE"
|
88 |
)
|
89 |
|
90 |
player_black = ConversableAgent(
|
|
|
94 |
"Then call make_move(move) to make a legal move. "
|
95 |
"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format, unordered list.",
|
96 |
llm_config=llm_config_black,
|
97 |
+
default_auto_reply="TERMINATE"
|
98 |
)
|
99 |
|
100 |
for caller in [player_white, player_black]:
|
|
|
173 |
if num_moves % 2 == 0 and num_move == num_moves + 1:
|
174 |
break
|
175 |
|
176 |
+
print("===")
|
177 |
+
print(result)
|
178 |
+
print("===")
|
179 |
|
180 |
return result
|