Skip to content

A programming framework for agentic AI

2147 - Fix notebook bug to make a copy of configs for each agent (#2176)

jtoy989c18274d4f
diff --git a/notebook/agentchat_groupchat_RAG.ipynb b/notebook/agentchat_groupchat_RAG.ipynb
index 27b5d2abb..0a604c508 100644
--- a/notebook/agentchat_groupchat_RAG.ipynb
+++ b/notebook/agentchat_groupchat_RAG.ipynb
@@ -117,27 +117,31 @@
" description=\"Assistant who has extra content retrieval power for solving difficult problems.\",\n",
")\n",
"\n",
+ "\n",
+ "coder_llm_config = llm_config.copy()\n",
"coder = AssistantAgent(\n",
" name=\"Senior_Python_Engineer\",\n",
" is_termination_msg=termination_msg,\n",
" system_message=\"You are a senior python engineer, you provide python code to answer questions. Reply `TERMINATE` in the end when everything is done.\",\n",
- " llm_config=llm_config,\n",
+ " llm_config={\"config_list\": config_list},\n",
" description=\"Senior Python Engineer who can write code to solve problems and answer questions.\",\n",
")\n",
"\n",
+ "pm_llm_config = llm_config.copy()\n",
"pm = autogen.AssistantAgent(\n",
" name=\"Product_Manager\",\n",
" is_termination_msg=termination_msg,\n",
" system_message=\"You are a product manager. Reply `TERMINATE` in the end when everything is done.\",\n",
- " llm_config=llm_config,\n",
+ " llm_config={\"config_list\": config_list},\n",
" description=\"Product Manager who can design and plan the project.\",\n",
")\n",
"\n",
+ "reviewer_llm_config = llm_config.copy()\n",
"reviewer = autogen.AssistantAgent(\n",
" name=\"Code_Reviewer\",\n",
" is_termination_msg=termination_msg,\n",
" system_message=\"You are a code reviewer. Reply `TERMINATE` in the end when everything is done.\",\n",
- " llm_config=llm_config,\n",
+ " llm_config={\"config_list\": config_list},\n",
" description=\"Code Reviewer who can review the code.\",\n",
")\n",
"\n",