mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user