Add details to AutoBuild's blog and fix test error. This PR is related to #846 (#865)

* 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:
Linxin Song
2023-12-06 03:50:17 +09:00
committed by GitHub
parent bb2bb8ed37
commit fa5f4ca8e3
2 changed files with 67 additions and 33 deletions

View File

@@ -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()