bstraehle commited on
Commit
d28bcdb
·
verified ·
1 Parent(s): 64667b7

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +4 -4
multi_agent.py CHANGED
@@ -60,7 +60,7 @@ def run_multi_agent(llm):
60
  system_message="You are a chess player and you play as white. "
61
  "First call get_legal_moves(), to get a list of legal moves. "
62
  "Then call make_move(move) to make a move. "
63
- "After a move is made, analyze the move.",
64
  llm_config=llm_config,
65
  )
66
 
@@ -69,7 +69,7 @@ def run_multi_agent(llm):
69
  system_message="You are a chess player and you play as black. "
70
  "First call get_legal_moves(), to get a list of legal moves. "
71
  "Then call make_move(move) to make a move. "
72
- "After a move is made, analyze the move.",
73
  llm_config=llm_config,
74
  )
75
 
@@ -116,7 +116,7 @@ def run_multi_agent(llm):
116
 
117
  chat_result = player_black.initiate_chat(
118
  player_white,
119
- message="Let's play chess! Your move.",
120
  max_turns=3,
121
  verbose=False
122
  )
@@ -128,6 +128,6 @@ def run_multi_agent(llm):
128
 
129
  for move in chat_history:
130
  move_num += 1
131
- result += f"{move_num}: {move.get('content')}\n"
132
 
133
  return result
 
60
  system_message="You are a chess player and you play as white. "
61
  "First call get_legal_moves(), to get a list of legal moves. "
62
  "Then call make_move(move) to make a move. "
63
+ "After a move is made, analyze the move using technical jargon.",
64
  llm_config=llm_config,
65
  )
66
 
 
69
  system_message="You are a chess player and you play as black. "
70
  "First call get_legal_moves(), to get a list of legal moves. "
71
  "Then call make_move(move) to make a move. "
72
+ "After a move is made, analyze the move using technical jargon.",
73
  llm_config=llm_config,
74
  )
75
 
 
116
 
117
  chat_result = player_black.initiate_chat(
118
  player_white,
119
+ message="Let's play chess!",
120
  max_turns=3,
121
  verbose=False
122
  )
 
128
 
129
  for move in chat_history:
130
  move_num += 1
131
+ result += f"{move_num}: {move.get('content')}<br />"
132
 
133
  return result