Update multi_agent.py
Browse files- multi_agent.py +5 -4
multi_agent.py
CHANGED
@@ -95,17 +95,18 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
95 |
|
96 |
board_proxy = ConversableAgent(
|
97 |
name="Board Proxy",
|
98 |
-
llm_config=
|
99 |
is_termination_msg=check_made_move,
|
100 |
default_auto_reply="Please make a move.",
|
101 |
-
human_input_mode="NEVER"
|
|
|
102 |
)
|
103 |
|
104 |
player_white = ConversableAgent(
|
105 |
name="Player White",
|
106 |
system_message="You are a chess Grandmaster and you play as white. "
|
107 |
"First call get_legal_moves(), to get a list of legal moves. "
|
108 |
-
"If there is no legal move, call set_game_over() "
|
109 |
"Else call make_move(move) to make a legal move. ",
|
110 |
#"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format (emoji of piece), unordered list.",
|
111 |
llm_config=llm_config_white,
|
@@ -116,7 +117,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
116 |
name="Player Black",
|
117 |
system_message="You are a chess Grandmaster and you play as black. "
|
118 |
"First call get_legal_moves(), to get a list of legal moves. "
|
119 |
-
"If there is no legal move, call set_game_over() "
|
120 |
"Else call make_move(move) to make a legal move. ",
|
121 |
#"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format (emoji of piece), unordered list.",
|
122 |
llm_config=llm_config_black,
|
|
|
95 |
|
96 |
board_proxy = ConversableAgent(
|
97 |
name="Board Proxy",
|
98 |
+
llm_config=llm_config_white,
|
99 |
is_termination_msg=check_made_move,
|
100 |
default_auto_reply="Please make a move.",
|
101 |
+
human_input_mode="NEVER",
|
102 |
+
system_message = "Your loyal assistant! Reply 'TERMINATE' when no legal move is possible."
|
103 |
)
|
104 |
|
105 |
player_white = ConversableAgent(
|
106 |
name="Player White",
|
107 |
system_message="You are a chess Grandmaster and you play as white. "
|
108 |
"First call get_legal_moves(), to get a list of legal moves. "
|
109 |
+
"If there is no legal move, call set_game_over() and reply 'TERMINATE'. "
|
110 |
"Else call make_move(move) to make a legal move. ",
|
111 |
#"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format (emoji of piece), unordered list.",
|
112 |
llm_config=llm_config_white,
|
|
|
117 |
name="Player Black",
|
118 |
system_message="You are a chess Grandmaster and you play as black. "
|
119 |
"First call get_legal_moves(), to get a list of legal moves. "
|
120 |
+
"If there is no legal move, call set_game_over() and reply 'TERMINATE'. "
|
121 |
"Else call make_move(move) to make a legal move. ",
|
122 |
#"Analyze the move in 3 bullet points. Respond in format **Analysis:** move in UCI format (emoji of piece), unordered list.",
|
123 |
llm_config=llm_config_black,
|