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

[AutoBuild] Supporting build agents from library; supporting generating agent descriptions #1039

Merged
merged 99 commits into from
Jan 6, 2024

Conversation

LinxinS97
Copy link
Collaborator

@LinxinS97 LinxinS97 commented Dec 21, 2023

Why are these changes needed?

This PR is to:

  1. Introduces a new feature of AutoBuild: build agents from a library. A library lists domain expert agents' names and system messages. To support this feature, the build() function now be separated into three functions: build() with no change on API, build_from_library(), and _build_agent(). The new build() function and build_from_library() function will generate a list of agent config from scratch or a given library and call the _build_agent() to generate agents based on the agent config list. build_from_library also supports agent selection from embedding similarity between agent profile and the building_task.
  2. Supports generating agent descriptions to improve group chat. A description briefly introduces agents that can help the group chat manager judge if this agent should speak in the current group chat round.

I've added a new notebook, example files, and tests for those new features.

Related issue number

#1092

Checks

@sonichi sonichi added this pull request to the merge queue Jan 6, 2024
Merged via the queue into main with commit e673500 Jan 6, 2024
78 of 87 checks passed
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* response filter

* rewrite implement based on the filter

* multi responses

* abs path

* code handling

* option to not use docker

* context

* eval_only -> raise_error

* notebook

* utils

* utils

* separate tests

* test

* test

* test

* test

* test

* test

* test

* test

* **config in test()

* test

* test

* filename
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
…ng agent descriptions (microsoft#1039)

* try to fix blog

* modify blog

* fix test error in microsoft#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 <[email protected]>

* add future work

* fix grammar

* update agent_builder

* solve microsoft#941; add detailed debug info; support json string config

* pre-commit

* solve microsoft#954

* pre-commit

* [new feature] build group chat agents from library.

* pre-commit

* add authors' info in notebook; add a new notebook for build_from_library; reduce prompt effort

* update test and example for build_from_library

* pre-commit

* add notebook; update docs

* change notebook name

* change description for notebook and doc

* remove default value for default_llm_config

* add embedding similarity agent selection

* pre-commit

* update test

* add dependency installation in github workflow

* update test

* pre-commit

* update notebook

* support directly json as library; support customize embedding model

* update test

* pre-commit

* update github test workflow

* Update autobuild_agent_library.ipynb

* add agent description

* refine prompt; update notebook

* pre-commit

* update test example

* update test

* update test

* update test

* change `config_path` to `config_path_or_env`; update test

* pre-commit

* update test

* update test

* update test: add config_file_location

* change `config_path_or_env` to `config_file_or_env`

* update test

* solve noqa

* fix import error for conftest

* fix test error

* pre-commit

* * update error message in `_create_agent`.
* replace `gpt-4-1106-preview` to `gpt-4` in test file.

* add comment on local server creation; modify notebook; update contrib-openai.yml for test; add autobuild option in setup.py; add autotest model name statement

* move import huggingface_hub to _create_agent

* pre-commit

* add uncover comment in the endpoint creation code block

* recover contrib-openai.yml for merge

---------

Co-authored-by: Jieyu Zhang <[email protected]>
Co-authored-by: Qingyun Wu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autobuilder Issues related to autobuilder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants