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

* try fix groupchat llm_config

* Update agentchat_groupchat_RAG.ipynb

* use better config options

* formatting

---------

Co-authored-by: i <i@jtoy.net>
Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Jason <jtoy@grids.local>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
jtoy
2024-03-31 09:39:20 -07:00
committed by GitHub
parent f7952657d2
commit 989c18274d

View File

@@ -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",