Update multi_agent.py
Browse files- multi_agent.py +3 -0
multi_agent.py
CHANGED
@@ -68,6 +68,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
68 |
is_termination_msg=check_made_move,
|
69 |
default_auto_reply="Please make a move.",
|
70 |
human_input_mode="NEVER",
|
|
|
71 |
)
|
72 |
|
73 |
player_white = ConversableAgent(
|
@@ -78,6 +79,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
78 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list, your turn player black. "
|
79 |
"Then continue playing.",
|
80 |
llm_config=llm_config_white,
|
|
|
81 |
)
|
82 |
|
83 |
player_black = ConversableAgent(
|
@@ -88,6 +90,7 @@ def run_multi_agent(llm_white, llm_black, num_moves):
|
|
88 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list, your turn player white. "
|
89 |
"Then continue playing.",
|
90 |
llm_config=llm_config_black,
|
|
|
91 |
)
|
92 |
|
93 |
for caller in [player_white, player_black]:
|
|
|
68 |
is_termination_msg=check_made_move,
|
69 |
default_auto_reply="Please make a move.",
|
70 |
human_input_mode="NEVER",
|
71 |
+
max_turns=300,
|
72 |
)
|
73 |
|
74 |
player_white = ConversableAgent(
|
|
|
79 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list, your turn player black. "
|
80 |
"Then continue playing.",
|
81 |
llm_config=llm_config_white,
|
82 |
+
max_turns=150,
|
83 |
)
|
84 |
|
85 |
player_black = ConversableAgent(
|
|
|
90 |
"After a move is made, analyze the move in 3 bullet points. Respond in format **Analysis:** move from/to, unordered list, your turn player white. "
|
91 |
"Then continue playing.",
|
92 |
llm_config=llm_config_black,
|
93 |
+
max_turns=150,
|
94 |
)
|
95 |
|
96 |
for caller in [player_white, player_black]:
|