1184 Commits

Author SHA1 Message Date
Davor Runje
cb6512dd5a
Add default value to the logprobs parameter (#1044)
* added default value to logprobs param

* fixed to work withversions of openai below 1.5.0

* rebase

* fixed openai version in comments

* polishing

* limit openai version to below 1.5.0

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2023-12-25 16:36:58 +00:00
Davor Runje
4b5ec5a52f
Add decorator for function calling (#1018)
* add function decorator to converasble agent

* polishing

* polishing

* added function decorator to the notebook with async function calls

* added support for return type hint and JSON encoding of returned value if needed

* polishing

* polishing

* refactored async case

* Python 3.8 support added

* polishing

* polishing

* missing docs added

* refacotring and changes as requested

* getLogger

* documentation added

* test fix

* test fix

* added testing of agentchat_function_call_currency_calculator.ipynb to test_notebook.py

* added support for Pydantic parameters in function decorator

* polishing

* Update website/docs/Use-Cases/agent_chat.md

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Update website/docs/Use-Cases/agent_chat.md

Co-authored-by: Li Jiang <bnujli@gmail.com>

* fixes problem with logprob parameter in openai.types.chat.chat_completion.Choice added by openai version 1.5.0

* get 100% code coverage on code added

* updated docs

* default values added to JSON schema

* serialization using json.dump() add for values not string or BaseModel

* added limit to openai version because of breaking changes in 1.5.0

* added line-by-line comments in docs to explain the process

* polishing

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2023-12-25 16:07:20 +00:00
afourney
b1adac5159
Partial fix for 960 (#963)
* Partial fix for 960

* Fixed a missing = None

* Added test coverage.
2023-12-24 12:23:06 +00:00
Victor Dibia
26b7aff2dc
Update AutoGen Sample App | Rename AutoGen Assistant -> AutoGen Studio (#998)
* add new autogen-studio renamed folder

* remove old autogen-assistant files

* formatting updates

* add support for upsert/updates to agents and workflows

* version bump, general fixes

* support deleting db items

* add support for summary method to flowmanager

* formatting updates

* update serverl urls

* version bump

* add support for updated metadata messages object to include sender information

* formatting updates

* update documentation and blog post

* blog post update

* add description field example to agent workflow spec

* readme and blog update

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

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

* add fix to ensure working directory is cleared after each run

* update version

* minor updates

* formatting updates

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-24 12:20:59 +00:00
Adi Garg
a97269634f
Autobuild notebook minor fix (#1049)
* Add python version requirement

* Add relevant blog link

* wording and grammar

* minor wording a grammar issue
2023-12-24 05:09:13 +00:00
Yuandong Tian
e5710993a1
Update README to incorporate using existing docker image (#1040)
* Update README to incorporate using existing docker image

* Fixing precommit issues

---------

Co-authored-by: Yuandong Tian <yuandong@fb.com>
2023-12-22 18:13:45 +00:00
KazooTTT
a122ffe541
Fix/typo (#1034)
* fix: typo

* fix: typo

* fix: typo of function name

* fix: typo of function name of test file

* Update test_token_count.py

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2023-12-22 16:00:46 +00:00
Beibin Li
a1e60e8846
Change defualt model for lmm (#1032) 2023-12-22 05:11:56 +00:00
Olaoluwa Ademola Salami
a26e18a835
add links to sdk #910 (#958)
* wip

* check relative link

* all links changed to relative

* Update website/docs/Use-Cases/agent_chat.md

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-21 22:20:04 +00:00
gagb
a0288e081b
Add examples constrained generation + multi-step reasoning via Guidance + AutoGen (#937)
* Add examples of constrained generation

* Add guidance based coder that always returns valid code blocks

* Add guidance based agent that always generates a valid json

* Add link to guidance nb
2023-12-20 23:04:05 +00:00
gagb
03b819bdf2
Add async test (#520)
* Add example nb for async funcs

* Add a notebook based test for async function calls

* Update nb

* Update nb

* Remove duplicate code

* Rename func for consistency

* Fix bug

* Add intro text for cmd cell 4

* Add a short comment on await

* Update agentchat_function_call_async.ipynb

Minor typo

* Add link to nb

---------

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-19 19:01:23 +00:00
Victor Dibia
6848e6090e
Update privacy link docusaurus.config.js (#1016) 2023-12-19 13:08:03 +00:00
Ram Rachum
913b5f2fb1
Fix exception cause in agent_builder.py (#1007) 2023-12-18 14:41:33 +00:00
Yiran Wu
aa946b3507
Add MATH tests to testbed (#914)
* add MATH eval to testbed

* update

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-18 14:37:28 +00:00
afourney
dd4a2da204
Enable allow_repeat_speaker to be a list of agents that are allowed to repeat, rather than just a global boolean. (#905)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-18 03:51:39 +00:00
Ikko Eltociear Ashimine
7dd88b68fb
Update client.py (#934)
overriden -> overridden
2023-12-18 03:19:34 +00:00
Hal Rottenberg
1cf0ad899a
correcting typo (#931)
typo found in url to AutoGen + Flowise Use Case
2023-12-18 03:19:13 +00:00
Dragos Campean
056bf0154b
Add missing assistant UI documentation steps (#935)
* Add missing assistant UI documentation steps

* Format documentation page for consistency

* Add missing step for installing the autogenra library
2023-12-18 03:18:52 +00:00
afourney
b29f9a90e8
Updated get_max_token_limit with latest models and numbers (#972)
* Updated with latest models and numbers

* Updated as per comments.

* Added common Azure deployment names for models.

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-18 03:06:41 +00:00
Olaoluwa Ademola Salami
42e07ca836
fix link that returns 404 (#945) 2023-12-18 03:02:07 +00:00
Linxin Song
605882b432
[AutoBuild] address issue 941 954; add new feature; add debug information (#944)
* 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

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

* pre-commit

* solve #954

* pre-commit

---------

Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-18 02:54:12 +00:00
Victor Dibia
083f5226a7
update privacy link (#994) 2023-12-16 04:04:33 +00:00
Kartik Mandaville
67ca9969df
fixed a typo fron -> from (#992) 2023-12-15 21:48:33 +00:00
afourney
4dcb41531f
Allow users to specify the Docker image to use with Testbed (#986)
* Allow users to specify the Docker image to use (or build a good AutoGen default image if not specified).

* Added lmm and graphs to dockerfile
2023-12-15 20:37:22 +00:00
LeoLjl
2ee944df37
Add collate file and more tests from autogpt into testbed (#915)
* Add collate file.

* Add requirements.txt, Fix typo, Add tests

* More tests.

* Update check.py

* Update scenario.py

* Update prepare_autogpt.py

* Update prepare_autogpt.py

* More tasks for testset.

* Add more tests.

* Update docs.

* Optimize file organize.
2023-12-14 16:26:30 +00:00
Victor Dibia
e18dc337fa
add privacy and cookies link (#966) 2023-12-13 04:38:47 +00:00
danyrouh
3a768c3189
Simple chat app (#921)
* Add file

Initial implementation

* Add file

Implementation

* 1. update readme 2. update web example 3. update code

* update readme

* remove working dir

* update

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Shaokun Zhang <shaokunzhang529@gmail.com>
2023-12-12 01:27:40 +00:00
Yiran Wu
9cec541630
Convert ChatCompletionMessage to Dict after completion (#791)
* update

* update

* update signature

* update

* update

* fix test funccall groupchat

* reverse change

* update

* update

* update

* update

* update

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.2
2023-12-10 03:28:13 +00:00
Chi Wang
a31b240100
bump version to 0.2.2 (#906)
* bump version to 0.2.2

* openai version
2023-12-10 03:16:18 +00:00
Yiran Wu
fd84ef1970
Raise error when function as llm_config passed to GroupChatManager (#911)
* fix groupchat selection

* update

* update notbooks

* update

* update
2023-12-10 01:33:46 +00:00
Ian
70f4c1c52d
Enhanced Independent Coverage Reporting (#886)
* Independent Test Execution and Coverage Reporting

* format

* Apply suggestions from code review

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

* add comments

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-09 23:35:15 +00:00
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