Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 11 commits into from
Mar 31, 2024
10 changes: 7 additions & 3 deletions notebook/agentchat_groupchat_RAG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading