3039 Commits

Author SHA1 Message Date
kittyandrew
6e2387192f
Make groupchat & generation async, actually (#543)
* make groupchat & generation async actually

* factored out func call pre-select; updated indecies

* fixed code format issue

* mark prepare agents subset as internal

* func renaming

* func inputs

* return agents

* Update test/agentchat/test_async.py

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update notebook/agentchat_stream.ipynb

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-09 20:50:36 +00:00
Diego Castro
379d7bd687
fix monitoring and observability gallery docs link (#926)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-09 19:58:06 +00:00
afourney
e74abe253e
Added an agent description field distinct from the system_message. (#736)
* Added an agent description field that can be distinct from the system_message, and be used to for orchestration (e.g., GroupChatManager, etc.)

* Added debugging.

* Moved default descriptions to constants.

* Fixed conditions under which the assistant uses the default description.

* Removed debugging.

* Updated GroupChat prompt.

* Re-added debugging.

* Removed double [[ ]].

* Another update to GroupSelection prompt.

* Changed 'people' to 'participants' since agents are not people.

* Changed 'role' to 'name'

* Removed debugging statements.

* Restored the default prompt. Created a contrib class with new prompt.

* Fixed documentation.

* Removed broken link.

* Fixed a warning message.

* Removed GroupChatModerator contrib. Will re-add in another PR

* Resolving comment.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-09 19:50:03 +00:00
Linxin Song
8ea63775bb
Change default model and config loading process in AgentBuilder (#917)
* 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

* update agent_builder

---------

Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-08 23:10:16 +00:00
Li Jiang
cf2ecf9cac
Add a comment to explain the role of UNSTRUCTURED_FORMATS (#909)
* Add a comment to explain the role of UNSTRUCTURED_FORMATS

* Update comments
2023-12-08 23:08:31 +00:00
Li Jiang
dcde7a05b3
Add issue forms (#918) 2023-12-08 23:07:58 +00:00
afourney
4324b27b0b
Allow GroupChat to recieve messages from outside. (#912) 2023-12-08 15:39:27 +00:00
Shaokun Zhang
69aaea5133
Website Gallery page building (#850)
* initial draft

* update dependences, add antd for layout (note yarn install needed her)

* update gallery to use mdx file format to support react components

* add custom react component for gallery with tag based filtering and url state management

* add styling for gallery objects

* add gallery data structure and default image

* improve layout for gallerypage

* revise Postgres demo

* add default value when image is not provided

* move semetic kernal to ecosystem

* update tags

* update tags

* update ecosystem

* update default fig

* update tags

* reformat

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2023-12-08 14:02:15 +00:00
chengxuan233
1b4fb8fb72
Adding a notebook demostrating video transcript translate with whisper in AutoGen (#881)
* add agentchat_video_transcript_translate.ipynb

* finish the agentchat_video_transcript_translate.ipynb file notebook

* modify the recognize_transcript_from_video function

* run the script and add the output to the notebook

* implement the notebook

* add the link to the video clip

* rename the file and add the version requirement of each packages

* add the new notebook path

* add the notebook path to Example.md

* add the new notebook path to the new example.md

* add the instruction of FFmpeg and video download

* Update Examples.md

* Update Examples.md

* Update Examples.md

* Update Examples.md

* Delete notebook/agentchat_video_transcript_translate.ipynb

* Update Examples.md and add the link

---------

Co-authored-by: silver233jpg <60947716+silver233jpg@users.noreply.github.com>
2023-12-07 20:11:15 +00:00
tyler-suard-parker
e96213e30b
Add test for async group chat (#902)
* Add test for async group chat

* run pre-commit

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-07 17:32:27 +00:00
Yiran Wu
cbd1e19307
Update cache if cost not calculated (#903)
* update cost for cache

* fix test
2023-12-07 03:43:30 +00:00
Chi Wang
31c166435e
raise error for content_filter (#849)
* raise error for content_filter

* use the code field

* simplify
v0.2.1
2023-12-06 16:12:09 +00:00
Mollie Munoz
fa11c4fa42
Update position of registered custom generate_reply functions for contrib/ agents per PR #794 (#871)
Co-authored-by: Mollie Munoz <momuno@microsoft.com>
2023-12-06 14:22:20 +00:00
afourney
f8b4b4259b
Adds the GAIA benchark to the Testbed. This PR depends on #792 (#810)
* Re-added completion logging when using older versions of autogen.

* Extended scenario definitions and templating to include folders.

* Prepare collate_human_eval.py for working with group chat scenarios.

* Converted HumanEval to the folder-based approach, and added GroupChat scenarios.

* Fixed the default termination message.

* Fixed another termination condition.

* Updated compatible autogen versions.

* Added initial support for GAIA benchmark.

* Fixed a bug in executing the finalize scripts.

* Generalized the template further to support multiple folder copy operations.

* Refined GAIA support, and broke scenarios down by difficulty.

* Added some experimental scripts for computing metrics over GAIA. This is a first version, and will likely need refinement.

* Added instructions for cloning GAIA

* Updated README to fix some typos.

* Added a script to format GAIA reslts for the leaderboard.

* Update samples/tools/testbed/scenarios/GAIA/Templates/BasicTwoAgents/scenario.py

Co-authored-by: LeoLjl <3110503618@qq.com>

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: LeoLjl <3110503618@qq.com>
2023-12-06 01:46:10 +00:00
Chi Wang
73d7e9203b
bump version to 0.2.1 (#867)
* bump version to 0.2.1

* remove example link

* update

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: kevin666aa <yrwu000627@gmail.com>
2023-12-05 21:09:05 +00:00
axa99
195c87e309
corrected openai utils example (#869) 2023-12-05 19:13:13 +00:00
Linxin Song
fa5f4ca8e3
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>
2023-12-05 18:50:17 +00:00
Joshua Kim
bb2bb8ed37
Clarifies #853 (#876) 2023-12-05 14:30:46 +00:00
Burhanuddin Mustafa Lakdawala
f8d3c6bca3
fix 0.2 release tag link (#872)
It had to be a complete link because the relative link tries to go to main/blob/releases which is invalid
2023-12-05 05:18:47 +00:00
afourney
a107233e23
Testbed can now read the OPENAI_API_KEY in addition to the OAI_CONFIG_LIST (#848)
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2023-12-04 22:14:00 +00:00
Ian
26f6e0cfb2
add a verbose flag to print more information of runtime (#717)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-04 15:02:32 +00:00
Linxin Song
55b9d0bfe1
AutoBuild blog refinement (#856)
* try to fix blog

* modify blog
2023-12-04 03:19:02 +00:00
Qingyun Wu
c3cebd7efe
Minor grammar and wording issues (#854)
* wording

* grammar and wording

* readability suggested by shruti222patel

* period
2023-12-04 02:57:06 +00:00
Linxin Song
707d75641a
try to fix blog (#855) 2023-12-04 02:40:24 +00:00
Linxin Song
83f0c744b2
Testing AutoBuild (#846)
* init notebook for agent set up

* complete AgentCreator

* AgentCreator first step features completed.

* update AgentCreator

* update AgentCreator

* update AgentCreator (modify params of build)

* [update AgentCreator] add auto judgement of coding

* add autobuild

* rename autobuild notebook

* Add step-by-step command.

* modify name

* fix bugs

* update for new openai api

* add example

* add load_config, save_config, and add task in build and start

* modify notebook

* rewrite save and load function; update notebook

* update description

* update description

* update description

* change member variable of agent_creator.py

* update notebook

* new feature: auto-generate agent name and system message

* new feature: add gpts support

* update notebook

* update notebook

* beautify; add docstring for build

* Update notebook; PR version

* typo

* update notebook

* fix typo

* try to run llama

* try to run llama

* switch api_base to base_url

* add details for Step 6; add print in clear_all_agents()

* Change description of Step 5

* delete ASSISTANT_CONFIG_LIST

* add Linxin to blog authors

* add blog

* Update index.mdx

* add test; add user proxy constrain; change show case in notebook

* modify blog for test

* change test file name; modify test

* modify test

* modify test

* add try/catch for dependency

* add version requirement for openai

* add exception for DistributionNotFound error

* add requirement

* change assertion

* rename test; modify index.mdx

* change config file name

* Update agent_chat.md

* Update agent_chat.md

* Update AgentChat.md

* complete blog; fix typos in notebook

* add autobuild banner

* try to merge

* Update Examples.md

* update test

* skip if openai not installed

* pre-commit

* Update website/blog/2023-11-26-Agent-AutoBuild/index.mdx

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* update contrib-openai.yml

* change pull_request_target to pull_request

* disable other openai tests

* address issues from ekzhu; modify notebook; modify blog; modify test

* update test example

* update test

* Update agent_chat.md

* Update Examples.md

* address issues from qingyun; update agent_builder.py; update notebook

* recover contrib-openai.yml

* pre-commit solve

---------

Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: JieyuZ2 <jieyuzhang97@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-04 02:12:26 +00:00
Qingyun Wu
02593ff7be
Add examples (#851)
* add human involvement

* citation

* AgentEval and invalid links

* numbering

* add cost to documentation

* add cost notebook

* oai config list utilities

* add utility link

* title
2023-12-03 23:46:38 +00:00
Yiran Wu
7a4ba1a732
Add cost summary to client.py (#812)
* init commit

* add doc, notebook and test

* fix test

* update

* update

* update

* update
2023-12-03 21:06:46 +00:00
Shobhit Vishnoi
5c92fb378b
Register async human input handler (#794)
* Update conversable_agent.py

* Add files via upload

* Delete notebook/Async_human_input.ipynb

* Add files via upload

* refactor:formatter

* feat:updated position

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-03 16:45:24 +00:00
Beibin Li
c19f234149
Message "content" now supports both str and List in Agents (#713)
* Change "content" type in Conversable Agent

* content and system_message support str and List
Update for all other agents

* Content_str now also takes None as input

* Group Chat now works with LMM too

* Style: newline for import in Conversable Agentt

* Add test for gourpchat + lmm

* Resolve comments
1. Undo AssistantAgent changes
2. Modify the asserts and raises in `content_str` function and update
test accordingly.

* Undo AssistantAgent

* Update comments and add assertion for LMM

* Typo fix in docstring for content_str

* Remove “None” out conversable_agent.py

* Lint message to dict in multimodal_conversable_agent.py

* Address lint issues

* linting

* Move lmm test into contrib test

* Resolve 2 comments

* Move img_utils into contrib folder

* Resolve img_utils path issues
2023-12-03 01:40:50 +00:00
Qingyun Wu
77e1d28c1b
improve ecosystem page (#823)
* restucture

* update examples references

* fix citation
2023-12-03 01:09:55 +00:00
Qingyun Wu
6f4d16e945
fix citations (#843)
* fix citations

* make citation more explicit

* add link

* emoji

* add link

* link

* add citation

* flaml link
2023-12-02 22:40:45 +00:00
Chi Wang
45036794e7
update the news for v0.2 release (#844)
* update the news for v0.2 release

* fix format
2023-12-02 18:41:28 +00:00
Victor Dibia
6258031adb
Add a Blog Post on the AutoGen Assistant (#834)
* add autogenassistant blog post

* update formatting in blog plst

* Fix typo

* Fix typo

* Update title

* Improve language

* Update website/blog/2023-12-01-AutoGenAssistant/index.mdx

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update website/blog/2023-12-01-AutoGenAssistant/index.mdx

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-02 11:04:28 +00:00
Nicolas Marchildon
17c51fd2f0
Enable defining new functions after agent creation (#285)
* Enable defining new functions after agent creation

* Add notebook for function inception example

* format

* 1. fix bug 2. support remove function

* 1. fix bug 2. support remove function

* 1. add example doc 2. change test file 3. change ipynb title

* Update website/docs/Examples.md

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Shaokun Zhang <shaokunzhang529@gmail.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-02 01:05:54 +00:00
Victor Dibia
5547e3b919
Improvements to AutoGen Assistant (#828)
* improve template for files, integreate files in db

* ui update, improvements to file display grid

* add new global skill for image generation

* update readme to address #739

* utils.py refactor, separate db uitls for ease of development

* db utils

* add support for sessions both in backend api and ui

* improve implementation for session support

* add early v1 support for a gallery and publishing to a gallery

* rewrite logic for file storage representation. Store only file references on in db

* update generate image logic

* update ui layout

* fix light dark mode bug

* v1 support for showing items added to gallery

* remove viewer as it is merged in gallery

* formatting updates

* QOL refactoring

* readme and general updates

* add example notebook on assistant api

* imporve naming conventions and formatting

* readme update

* Update samples/apps/autogen-assistant/pyproject.toml

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update samples/apps/autogen-assistant/notebooks/tutorial.ipynb

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-02 00:22:02 +00:00
Charles Packer
1fb60e2d38
Update Ecosystem.md (#838) 2023-12-01 23:19:13 +00:00
Chi Wang
9ce60c454d
update about pyautogen 0.2 (#826) 2023-12-01 04:07:23 +00:00
Shaokun Zhang
ba5a07a945
Add ecosystem page for website (#803)
* add ecosystem for web

* 1. change to Resources and Examples tables 2. reformat

* fix

* fix

* fix

* update

* update

* update

* update

* update

* Update website/docs/Ecosystem.md

* update

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-30 18:31:08 +00:00
afourney
45c2a78970
Testbed folders (#792)
* Re-added completion logging when using older versions of autogen.

* Extended scenario definitions and templating to include folders.

* Prepare collate_human_eval.py for working with group chat scenarios.

* Converted HumanEval to the folder-based approach, and added GroupChat scenarios.

* Fixed the default termination message.

* Fixed another termination condition.

* Updated compatible autogen versions.

* Fixed a bug in executing the finalize scripts.

* Generalized the template further to support multiple folder copy operations.

* Add tests from AutoGPT.

* Update README.md

* Fix typo

* Update samples/tools/testbed/README.md

---------

Co-authored-by: LeoLjl <3110503618@qq.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-30 16:43:03 +00:00
Li Jiang
ae7066be57
Add a warning message if docs_path not explicitly set (#814)
* Add a warning message if docs_path not explicitly set

* update

* Add how to suppress warning message

* Fix tests errors

* Fix tests errors

* Fix tests errors
2023-11-30 16:34:45 +00:00
Matt Hodges
f65494664d
Fix Langchain link in examples doc (#811) 2023-11-30 04:46:02 +00:00
afourney
8d5f1766c9
GroupChat handle is_termination_msg (#804)
* Have GroupChatManager check is_termination_msg

* Added test cases.
2023-11-29 20:43:57 +00:00
Li Jiang
3c2a38ec06
Improve docstring of query_texts and search_string (#795)
* Improve docstring of query_texts and search_string

* Update docstring

* Update docstring
2023-11-29 17:19:40 +00:00
afourney
4fde1211c2
Quick fix for the str concatenation bug, but it remains to be discovered why we are getting a 'ChatCompletionMessage' rather than a str. (#809) 2023-11-29 17:15:44 +00:00
Ricky Loynd
f96963ed43
Progress bar for learn_from_user_feedback (#776)
* Use tqdm to report progress in learn_from_user_feedback()

* Update contrib-openai.yml

Append `pytest-asyncio` to `pip install coverage` for TeachableAgent.

* Replace pytest-asyncio with pytest

* Temporary usage of pull_request action.

* Restore pull_request_target action.
2023-11-29 00:38:56 +00:00
Yiran Wu
f812a238b1
add cost calculation to client (#769)
* add cost calculation

* Update autogen/oai/client.py

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* Update autogen/oai/client.py

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* update

* add doc

---------

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
2023-11-28 19:47:53 +00:00
Qingyun Wu
b30ead2945
Update application figure (#352)
* update app fig

* space

* update fig

* format

* update fig
2023-11-27 21:07:53 +00:00
Li Jiang
4edceab800
Remove version condition to fix issue #775 (#777) 2023-11-27 05:00:37 +00:00
Olaoluwa Ademola Salami
34b90e478c
how to register a rely function Issue-478 (#579)
* how to register a rely function Issue-478

* updated PR

* added example

* wip

* fixed erors
2023-11-27 04:09:06 +00:00
Olaoluwa Ademola Salami
37ec15497d
Add links to newly added notebooks in the website #756 (#772)
* wip

* remove spaces

* :

* pr updated

* change to wip

* Created a new subsection
2023-11-27 04:08:36 +00:00