You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -203,39 +210,39 @@ def get_board_text() -> Annotated[str, "The current board state"]:
203
210
# Register the agents.
204
211
awaitToolAgent.register(
205
212
runtime,
206
-
"ToolAgent",
207
-
lambda: ToolAgent(description="Tool agent for chess game.", tools=black_tools+white_tools),
213
+
"PlayerBlackToolAgent",
214
+
lambda: ToolAgent(description="Tool agent for chess game.", tools=black_tools),
215
+
)
216
+
217
+
awaitToolAgent.register(
218
+
runtime,
219
+
"PlayerWhiteToolAgent",
220
+
lambda: ToolAgent(description="Tool agent for chess game.", tools=white_tools),
208
221
)
209
222
210
-
awaitToolUseAgent.register(
223
+
awaitPlayerAgent.register(
211
224
runtime,
212
225
"PlayerBlack",
213
-
lambda: ToolUseAgent(
226
+
lambda: PlayerAgent(
214
227
description="Player playing black.",
215
-
instructions="You are a chess player and you play as black. "
216
-
"Use get_legal_moves() to get list of legal moves. "
217
-
"Use get_board() to get the current board state. "
218
-
"Think about your strategy and call make_move(thinking, move) to make a move.",
228
+
instructions="You are a chess player and you play as black. Use the tool 'get_board' and 'get_legal_moves' to get the legal moves and 'make_move' to make a move.",
instructions="You are a chess player and you play as white. "
232
-
"Use get_legal_moves() to get list of legal moves. "
233
-
"Use get_board() to get the current board state. "
234
-
"Think about your strategy and call make_move(thinking, move) to make a move.",
241
+
instructions="You are a chess player and you play as white. Use the tool 'get_board' and 'get_legal_moves' to get the legal moves and 'make_move' to make a move.",
0 commit comments