mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
* try to fix blog * modify blog * fix test error in #717; fix blog typo in installation; update blogs with output examples. * pre-commit * pre-commit * Update website/blog/2023-11-26-Agent-AutoBuild/index.mdx Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu> * add future work * fix grammar --------- Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu> Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
This commit is contained in:
@@ -40,8 +40,12 @@ def test_build():
|
||||
builder.build(
|
||||
building_task=building_task,
|
||||
default_llm_config={"temperature": 0},
|
||||
user_proxy_work_dir=f"{here}/test_agent_scripts",
|
||||
docker="python:3",
|
||||
code_execution_config={
|
||||
"last_n_messages": 2,
|
||||
"work_dir": f"{here}/test_agent_scripts",
|
||||
"timeout": 60,
|
||||
"use_docker": "python:3",
|
||||
},
|
||||
)
|
||||
|
||||
# check number of agents
|
||||
@@ -67,8 +71,12 @@ def test_save():
|
||||
builder.build(
|
||||
building_task=building_task,
|
||||
default_llm_config={"temperature": 0},
|
||||
user_proxy_work_dir=f"{here}/test_agent_scripts",
|
||||
docker="python:3",
|
||||
code_execution_config={
|
||||
"last_n_messages": 2,
|
||||
"work_dir": f"{here}/test_agent_scripts",
|
||||
"timeout": 60,
|
||||
"use_docker": "python:3",
|
||||
},
|
||||
)
|
||||
saved_files = builder.save(f"{here}/example_save_agent_builder_config.json")
|
||||
|
||||
@@ -99,8 +107,12 @@ def test_load():
|
||||
|
||||
agent_list, loaded_agent_configs = builder.load(
|
||||
config_save_path,
|
||||
user_proxy_work_dir=f"{here}/test_agent_scripts",
|
||||
docker="python:3",
|
||||
code_execution_config={
|
||||
"last_n_messages": 2,
|
||||
"work_dir": f"{here}/test_agent_scripts",
|
||||
"timeout": 60,
|
||||
"use_docker": "python:3",
|
||||
},
|
||||
)
|
||||
|
||||
# check config loading
|
||||
@@ -125,8 +137,12 @@ def test_clear_agent():
|
||||
config_save_path = f"{here}/example_test_agent_builder_config.json"
|
||||
builder.load(
|
||||
config_save_path,
|
||||
user_proxy_work_dir=f"{here}/test_agent_scripts",
|
||||
docker="python:3",
|
||||
code_execution_config={
|
||||
"last_n_messages": 2,
|
||||
"work_dir": f"{here}/test_agent_scripts",
|
||||
"timeout": 60,
|
||||
"use_docker": "python:3",
|
||||
},
|
||||
)
|
||||
builder.clear_all_agents()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user