Update multi_agent.py
Browse files- multi_agent.py +4 -6
multi_agent.py
CHANGED
@@ -80,21 +80,19 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
80 |
player_white = ConversableAgent(
|
81 |
name="Player White",
|
82 |
system_message="You are a chess Grandmaster and you play as white. "
|
83 |
-
"First call get_legal_moves(), to get a list of legal 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 |
-
default_auto_reply="EXIT"
|
88 |
)
|
89 |
|
90 |
player_black = ConversableAgent(
|
91 |
name="Player Black",
|
92 |
system_message="You are a chess Grandmaster and you play as black. "
|
93 |
-
"First call get_legal_moves(), to get a list of legal moves. "
|
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="EXIT"
|
98 |
)
|
99 |
|
100 |
for caller in [player_white, player_black]:
|
|
|
80 |
player_white = ConversableAgent(
|
81 |
name="Player White",
|
82 |
system_message="You are a chess Grandmaster and you play as white. "
|
83 |
+
"First call get_legal_moves(), to get a list of legal moves. If there no legal moves, EXIT. "
|
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(
|
90 |
name="Player Black",
|
91 |
system_message="You are a chess Grandmaster and you play as black. "
|
92 |
+
"First call get_legal_moves(), to get a list of legal moves. If there no legal moves, EXIT. "
|
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]:
|