diff --git a/notebook/autogen_agentchat_chess.ipynb b/notebook/autogen_agentchat_chess.ipynb index 03da143d2b..e72880ae3c 100644 --- a/notebook/autogen_agentchat_chess.ipynb +++ b/notebook/autogen_agentchat_chess.ipynb @@ -35,7 +35,7 @@ "outputs": [], "source": [ "%%capture --no-stderr\n", - "# %pip install flaml[autogen]~=2.0.0\n", + "# %pip install flaml[autogen]~=2.1.0\n", "%pip install chess -U" ] }, @@ -158,7 +158,7 @@ " llm_config={\"temperature\": 0.0, \"config_list\": config_list_gpt4},\n", " max_consecutive_auto_reply=10,\n", " )\n", - " self.register_auto_reply(autogen.ConversableAgent, BoardAgent._generate_board_reply)\n", + " self.register_reply(autogen.ConversableAgent, BoardAgent._generate_board_reply)\n", " self.board = board\n", " self.correct_move_messages = defaultdict(list)\n", "\n", @@ -226,8 +226,8 @@ " max_consecutive_auto_reply=max_turns,\n", " **kwargs,\n", " )\n", - " self.register_auto_reply(BoardAgent, ChessPlayerAgent._generate_reply_for_board, config=board_agent.board)\n", - " self.register_auto_reply(ChessPlayerAgent, ChessPlayerAgent._generate_reply_for_player, config=board_agent)\n", + " self.register_reply(BoardAgent, ChessPlayerAgent._generate_reply_for_board, config=board_agent.board)\n", + " self.register_reply(ChessPlayerAgent, ChessPlayerAgent._generate_reply_for_player, config=board_agent)\n", " self.update_max_consecutive_auto_reply(board_agent.max_consecutive_auto_reply(), board_agent)\n", "\n", " def _generate_reply_for_board(\n", diff --git a/notebook/autogen_agentchat_stream.ipynb b/notebook/autogen_agentchat_stream.ipynb index cc7378c857..5bb3828b20 100644 --- a/notebook/autogen_agentchat_stream.ipynb +++ b/notebook/autogen_agentchat_stream.ipynb @@ -45,7 +45,7 @@ }, "outputs": [], "source": [ - "# %pip install flaml[autogen]~=2.0.0" + "# %pip install flaml[autogen]~=2.1.0" ] }, {