3039 Commits

Author SHA1 Message Date
afourney
0107b52d5a
Adds a SocietyOfMindAgent that presents as a single agent, but runs GroupChat as an inner-monologue (#890)
* Added a GroupChatRepresentative class that uses group chat as an inner-monologue.

* Renamed GroupChatRepresentative to SocietyOfMindAgent

* Added tests for the society of mind agent.

* Don't force message attribution -- the defaults are correct.

* Add names to external messages.

* Added some comments to document code, per request.

* Added some comments to document code, per request.

* Added a Notebook example, and the ability to use a prompt as the response_preparer.

* Protect inner chat with try-catch

* Fixed typo.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-31 00:01:40 +00:00
Jack Gerrits
276d5b7d31
docs: initial Jupyter support for website docs, move config notebook (#1448)
* docs: jupyter support for website docs, move config docs

* update devcontainer dockerfile, fix CI issues

* update bsed on working directory

* update TLDR

* install into temp

* remove unrelated change from diff

* fix spelling issue

* Update sidebars.js
2024-01-30 22:54:44 +00:00
afourney
8d1d07308a
Removed "Tool Call Id" from main content string. (#1471)
* Removed Tool Call Id from main content string.

* Fixed tests.
2024-01-30 21:41:27 +00:00
Yannick Müller
2467e97078
fixed wrong doc link (#1449)
* fixed wrong doc link

* directly referenced file

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

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

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-30 14:52:03 +00:00
Maxim Saplin
74a4d70a05
FAQ, working with LLM endpoints and explaining why config-list is a list (#1451)
* FAQ and notebook extended

* Update notebook/oai_openai_utils.ipynb

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

* Update website/docs/FAQ.md

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

* Update website/docs/FAQ.md

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

* Update website/docs/FAQ.md

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

* Update website/docs/FAQ.md

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

* Update FAQ.md

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-30 14:48:36 +00:00
Naman Barkiya
3608079911
Improve docs/gallery card component (#1445)
* Improve docs/gallery card component

* added border to gallery card component
2024-01-29 22:49:06 +00:00
Eric Zhu
6cf5bb0086
Update function call doc with example of not using decorator syntax. (#1441)
* update function call doc to address #1213

* typo
2024-01-28 20:31:23 +00:00
Davor Runje
101d7fbf17
limited version of pytest to under 8.0.0 (#1437) v0.2.9 2024-01-28 00:52:18 +00:00
Grigorij
0790da0bd3
functionality of manual history cleaning by user proxy added (#1230)
* functionality of manual history cleaning by admin added

* formatting improved

* formatting improved 2

* formatting improved 3

* test function added

* test code formatting

* test code formatting 2

* more advanced logging. Now user can see nr of messages to preserve as confirmation

* test_invalid_allow_repeat_speaker uncommented

* warning when providing recepient agent and nr messages to preserve added, changed variables names

* code formatting

* code formatting

* code formatting

* added 'enable_clear_history' variable to GroupChat

* 'enable_clear_history' added, better descripted

* clearing groupchat history added

* clearing groupchat history added

* two ifs merged into one, formatting improved

* two ifs merged into one, formatting improved

* two ifs merged into one, formatting improved

* formatting

* formatting

---------

Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-27 19:14:03 +00:00
Jack Gerrits
9434cd4c20
docs: split apart installation docs into parts (#1420)
* docs: split apart installation file into parts

* missing newline

* fix link

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-27 19:03:24 +00:00
Preston Badeer
26a0694886
Correct small typos in system messages (#1410)
* Update utils.ts - fix small typo in default system message

* Fix typos in system messages

---------

Co-authored-by: Preston Badeer <467756+pbadeer@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-27 19:02:59 +00:00
Aristo
185e9270c9
Add A Stateful Dev Environment by Jupiter example to gallery (#1376)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-27 19:00:03 +00:00
Byron Xu
fe7876d6ed
Add SQL agent and Spider environment (#1218)
* add SQL agent and Spider environment

* Make a notebook. Clean up environment.

* add SQL agent and Spider environment

* Make a notebook. Clean up environment.

* clarify that sql agent is for spider environment

* add link to notebook in docs

* Update doc.

---------

Co-authored-by: Wangda Zhang <wangdazhang@microsoft.com>
Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-27 18:59:38 +00:00
Chi Wang
fd0094ce51
bump version to 0.2.9 (#1430)
* Fixed rounding bug.

* bump version to 0.2.9

* fix format error

* simplify contrib tests

---------

Co-authored-by: Adam Fourney <adamfo@microsoft.com>
2024-01-27 18:49:24 +00:00
afourney
1ab2354009
Fixed broken links. (#1408) 2024-01-26 01:54:51 +00:00
afourney
cd199c7ab7
Introduces AutoGenBench (#1048)
* Initial commit of AutoGenBench

* wording

* typo

* pre-commit reformulation

* Updated README to point to contributor's guide earlier.

* Simplified the description of the JSON format.

* Added print statements to indicate when run.sh and scenario.py are starting.

* Added SocietyOfMind scenario to GAIA.

* Pointing autogenbench clone command to the latest branch.

* Temporarily disable subsample option.

* Updated the GAIA readme to specify how to define a BING API key.

* Fixed and re-enabled the subsample option.

* Added a draft of a blog post.

* Updated authors.

* Incorporating Gagan's feedback.

* Fixed code formatting.

* Updated the help string in the docs.

* Light editing of the AutoGenBench blogpost.

* Support filtering on model tags.

* Added websurfer dependencies to Dockerfile.

* Renamed testbed -> autogenbench

* Attempting to fix formatting.

* Added more gracefull handling of task timeouts (the script is allowed to terminate before Docker is stopped).

* Updated the blogpost based on Saleema's and Julia's feedback.

* Fixed formatting... again.

* Added a main MANIFEST to list available scenarios.

* Limit main manifest to directories.

* Manifests now use relative paths.

* All manifests are now relative.

* Updated the contributing guide, and address windows path issues.

* Updated the version. Fixed formatting.

* Fixed formatting.

* De-listing Examples, since it has no clear tabulate criteria.

* Updated email in pyproject

* typo in blogpost

* wording

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-01-26 00:46:58 +00:00
Eric Zhu
6bf62572ee
Fix permission block for deploy-website.yml (#1397)
Based on the instruction here: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-first-deployment-with-github_token

Write permission is needed to publish GitHub page content to the gh-pages branch.
2024-01-25 16:54:21 +00:00
Olaoluwa Ademola Salami
bcfd770a34
test permissions (#1264)
* test permissions

* test least permissions

* remove contents permissions

* testing permisions

* Update deploy-website.yml permission block

---------

Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-24 21:50:37 +00:00
olgavrou
fdd8813d67
add blog and warning in readme for new breaking changes (#1380)
* add blog and warning in readme for new breaking changes

* add version number to readme note

* Update website/blog/2024-01-23-Code-execution-in-docker/index.mdx

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* Update website/blog/2024-01-23-Code-execution-in-docker/index.mdx

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* pr comments

* Update website/blog/2024-01-23-Code-execution-in-docker/index.mdx

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* rephrase vulnterability

* address pr comments

* add doc for turning off code execution entirely

* add more in docs about disabling code execution entirely

* Update website/docs/FAQ.md

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

* Update website/docs/Installation.md

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

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-24 20:26:23 +00:00
cem()
19b5c85034
add new gallery item (#1365)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-24 01:18:00 +00:00
Davor Runje
0c5d6b2533
fixed skipping code execution in docker test if already runnning in a container (#1383) 2024-01-23 23:38:52 +00:00
gagb
598a634665
Cleanup and unify Dockerfiles (#1333)
* Create studio subfolder in devcontainer

* Update to follow readme instructions

* Move dockerfiles from samples to .devcontainer

* Fix typo in file name

* Update readme

* update doc

* Remove base dockerfile and update readme

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Davor Runje <davor@airt.ai>
2024-01-23 20:25:36 +00:00
Victor Dibia
30b84d4254
Autogenstudio - Add GroupChat Support to UI (#1352)
* support groupchat, other QOL fixes

* remove gallery success toast

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

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

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-23 19:59:58 +00:00
cheng-tan
d243db7ba0
Add policheck to azure pipeline (#1371)
* Add policheck to azure pipeline

* policheck only runs on windows

* try without exclusions arg
v0.2.8
2024-01-23 16:00:23 +00:00
cheng-tan
8a66a0602c
accessibility fix (#1374) 2024-01-23 15:59:43 +00:00
Aristo
813dfaa61f
Add an AutoGen UI example powered by Panel (#1348)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-23 01:13:17 +00:00
afourney
c05e212d15
Change last_n_messages to default to 'auto' (#1356)
* Change last_n_messages to default to 'auto'

* Added last_n_messages validation, as per Eric's comment.

---------

Co-authored-by: Davor Runje <davor@airt.ai>
2024-01-23 01:12:50 +00:00
cheng-tan
c76dc2bbb0
fix website production css (#1366)
* fix website production css

* add yarn.lock
2024-01-23 00:50:59 +00:00
Chi Wang
05923a7301
bump version to 0.2.8 (#1349)
* bump version to 0.2.8

* make import easier

* redis
2024-01-22 14:17:59 +00:00
afourney
708eb4d884
Add a web surfer agent that can search and browse the web. (#1093)
* Initial commit of WebSurfer. Adds the browser_utils, and related tests. WebSurfer will be added in a subsequent commit.

* Added the web surfer agent, and related tests.

* Added a notebook to show how WebSurferAgent works.

* Fixed a typo.

* Updated test_web_surfer for compatibility with #1110.

* Updated skip_oai logic.

* Fixed code formatting.

* More pre-commit fixes.

* Added block to contrib-openai.yml

* Added block to contrib-openai.yml

* Added hook for BING_API_KEY

* Temporarily commented out other tests, per request.

* Fixed indentation (maybe?)

* Restoring contrib-openai.yml
2024-01-22 03:43:15 +00:00
Bala
ca56782a7f
More documentation for Cache. Updated FAQ to include database Locked error (#1291)
* Update FAQ.md

Database Locked error in Azure Machine Learning compute instance

* Update website/docs/FAQ.md

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

* Update website/docs/FAQ.md

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

* update doc; add module import for Cache

* update doc

* nit

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-20 22:27:06 +00:00
Vijay Ramesh
ee6ad8d519
[Core] implement redis cache mode (#1222)
* implement redis cache mode, if redis_url is set in the llm_config then
it will try to use this.  also adds a test to validate both the existing
and the redis cache behavior.

* PR feedback, add unit tests

* more PR feedback, move the new style cache to a context manager

* Update agent_chat.md

* more PR feedback, remove tests from contrib and have them run with the normal jobs

* doc

* updated

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

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

* update docs

* update docs; let openaiwrapper to use cache object

* typo

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

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

* save previous client cache and reset it after send/a_send

* a_run_chat

---------

Co-authored-by: Vijay Ramesh <vijay@regrello.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-20 17:06:29 +00:00
bitnom
e97b6395af
Allow initiate_chat without passing message (#1244)
* allow initiate_chat without passing message

* test human input

* assert called

* Add missing method a_generate_init_message

* fix tests

* add back skipif

* Update test/agentchat/test_async_get_human_input.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-19 03:46:20 +00:00
gagb
97296105eb
Add dev container for AutoGen Studio (#1241)
* Create studio subfolder in devcontainer

* Update to follow readme instructions
2024-01-18 23:57:57 +00:00
olgavrou
a911d1c2ec
set use_docker to default to True (#1147)
* set use_docker to default to true

* black formatting

* centralize checking and add env variable option

* set docker env flag for contrib tests

* set docker env flag for contrib tests

* better error message and cleanup

* disable explicit docker tests

* docker is installed so can't check for that in test

* pr comments and fix test

* rename and fix function descriptions

* documentation

* update notebooks so that they can be run with change in default

* add unit tests for new code

* cache and restore env var

* skip on windows because docker is running in the CI but there are problems connecting the volume

* update documentation

* move header

* update contrib tests
2024-01-18 17:03:49 +00:00
Eric Zhu
22e36cbb10
Support for Python 3.12 (#1317)
* support for Python 3.12

* add python 3.12 to workflows

* version string fix

* retrieval chat

* teachability

* workflow

* redistribute notebook tests

* fix incorrect notebook introduction

* update banner; remove unused imports; update openai workflow

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.7
2024-01-18 07:15:06 +00:00
cheng-tan
0f59322bc3
Fix website accessibility (#1153)
* fix light theme accessibility

* fix dark theme

* fix format

* Fix formatting

---------

Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-18 04:42:45 +00:00
Brian Finney
73c75226b6
def _prepare_chat for groupchat manager to reset the groupchat (#1254)
* def _prepare_chat for groupchat manager to reset the groupchat

* typo

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

* typehint and simplify

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-18 03:39:04 +00:00
Ashutosh Kumar
260e0cfa53
Updated Blog and removed cd frontend (#1301)
User is already in the frontend directory so there is no need to run `cd frontend`

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-01-17 18:07:10 +00:00
Olivier Mertens
23d6e1ec8a
Update README.md (#1306)
Correct error in link for autogenstudio/utils/dbdefaults.json extra T :)
2024-01-17 15:01:49 +00:00
Yannick Müller
46e76d244f
removed alpine image (#1279)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-17 02:48:13 +00:00
Maxim Saplin
00dbcb247e
Switched to AzureOpenAI for api_type=="azure" (#1232)
* Switched to AzureOpenAI for api_type=="azure"

* Setting AzureOpenAI to empty object if no `openai`

* extra_ and openai_ kwargs

* test_client, support for Azure and "gpt-35-turbo-instruct"

* instruct/azure model in test_client_stream

* generalize aoai support (#1)

* generalize aoai support

* Null check, fixing tests

* cleanup test

---------

Co-authored-by: Maxim Saplin <smaxmail@gmail.com>

* Returning back model names for instruct

* process model in create

* None check

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-17 02:03:14 +00:00
Suhaha
39182ccb6b
[AutoGen Studio] Fix the process of new workflow (#1181)
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-01-17 01:59:21 +00:00
Yiran Wu
acf81ac420
Add usage summary for agents (#1269)
* update

* update

* Update notebook/oai_client_cost.ipynb

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

* update doc and test

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-17 01:55:29 +00:00
Chi Wang
563b1bb00b
remove filter_dict (#1284) 2024-01-16 17:24:17 +00:00
Chi Wang
adbfb206dc
add workdir in test (#1274)
* add workdir in test

* catch filenotfound

* modify print msg
2024-01-16 03:26:18 +00:00
Eric Zhu
e784f2b9b6
[Core] Update documentation for function call compatibility (#1237)
* #1206

* doc

* add test for azure openai

* prior to

* filter for versions

* up to

* literal type

* update doc

* update doc

* update model list

* Update autogen/agentchat/conversable_agent.py

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

* Update test/agentchat/test_tool_calls.py

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

* Update test_tool_calls.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-16 03:04:27 +00:00
Brian Finney
d1c1548888
remove name from tool response (#1263)
* remove name from tool response

* fix tool response tests

* fix output string
2024-01-16 02:54:56 +00:00
Davor Runje
bde2fc9398
replaced asyncio.coroutines.iscoroutinefunction with inspect.iscoroutine (#1267) 2024-01-16 00:21:12 +00:00
R3d91ll
135bca41de
Docker Documentation (#1251)
* Updates to the Dockerfiles making them more secure. update to the installation.md file and a start.sh file for the Dockerfile.dev to start the document server. Not ready for pull request.

* updates to the docker documentation

* clean up before commit

* added docker instructions on how to test  documentation prior to commit.

* fixed the title heading in the installation.md

* removed alternate yarn install from Dockerfile.dev

* Update sidebars.js

removed un-related change from website/sidebars.js

* cleaned up the lint errors from the pre-commit-check.

* removed bad edit from sidebars.js

* fixing git conflict with sidebars.js file

* Update Installation.md

added the missing sections back. However, do we still want the docker section under the Optional Dependencies? That looks like it would go better in the Dockerfiles.md file.

* Update Installation.md

Added mount your code back and added mount your directory for better clarity.

* Update Installation.md

Lint cleanup

* Update Installation.md

removed the relative path to samples/dockers/Dockerfiles.md with a proper URL to where it will exist

* fixed bad link to Dockerfiles.md

* Fix trailing whitespace and formatting issues

* Update link to Dockerfiles.md

* somtimes its really hard to find that lost i.

* trailing whitespace and EOF issues resolved

* fixed broken link

* trailing space an broken link

* removed broken links. will update one merged.

* fixed glaring error about building an image from a particular branch Contribute.md

* removed tic mark typo from contribute.md

---------

Co-authored-by: Todd W Bucy <todd.bucy@rackspace>
2024-01-15 17:15:59 +00:00