1206 Commits

Author SHA1 Message Date
Yiran Wu
8a26d3b3cd
Minor fix groupchat (#904)
* minor fix groupchat

* update

* update

---------

Co-authored-by: Davor Runje <davor@airt.ai>
2024-01-03 00:23:11 +00:00
Beibin Li
b26e659362
[Core] Improve config_list_from_json (#1026)
* Improve config_list_from_json
The `env_or_file` variabe can point to an
environment variable of file path.

* Update autogen/oai/openai_utils.py

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

* Use "with" to open config file

* Remove unused.

* Remove accidental added file

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-02 21:33:28 +00:00
Xiaoyun Zhang
d20bc09cba
move dotnet pipeline to the root of workflow (#1116) 2024-01-02 03:19:07 +00:00
Maxim Saplin
c80df8acab
Skip tests that depend on OpenAI via --skip-openai (#1097)
* --skip-openai

* All tests pass

* Update build.yml

* Update Contribute.md

* Fix for failing Ubuntu tests

* More tests skipped, fixing 3.10 build

* Apply suggestions from code review

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>

* Added more comments

* fixed test__wrap_function_*

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Davor Runje <davor@airt.ai>
2023-12-31 19:37:21 +00:00
Chi Wang
3b0e059699
openai base url default to None; read files when env vars exist; remove deprecated models (#1110)
* openai base url default to None

* read from files when env vars exist
2023-12-31 18:12:49 +00:00
Eric Zhu
a9483a492c
fix use case in website (#1108) 2023-12-30 20:48:08 +00:00
Ibrahim H
f49771014d
Update Ecosystem.md (#1104)
Fix: memgpt link
2023-12-30 18:16:19 +00:00
brotsky
f39c3a7355
dev alias for frontend develop (#1083)
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2023-12-30 13:43:10 +00:00
Olaoluwa Ademola Salami
7a55734bb5
add example to website (#860)
* add exaample to website

* add to gallery

* Update website/docs/Examples.md

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-30 03:53:39 +00:00
Xiaoyun Zhang
2d3ed96f46
[Dotnet] Add dotnet build workflow (#946)
* update

* add openai workflow

* Update pre-commit.yml

* Update run_openai_test_and_notebooks.yml

* Update pre-commit.yml

* Update .github/workflows/pre-commit.yml

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

* Update run_openai_test_and_notebooks.yml

* Update run_openai_test_and_notebooks.yml

* Update run_openai_test_and_notebooks.yml

* Update pre-commit.yml

* Update .pre-commit-config.yaml

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-30 02:23:12 +00:00
Maxim Saplin
16b1723c74
[Core] Extending inline docs for openai_utils.py, boosting coverage in test_utils.py, fixing #762 (#1046)
* fix for #762 ,get_config_list/oia assetion, docs, test

* Improved docstrings

* test_utils using fake data and temp files

* "Black" formatting applied

* Fix build (KEY_LOC and OAI_CONFIG_LIST as consts in test_client)

* Ramping up openai_utils coverage

* Missing parameter doc.

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2023-12-30 02:03:34 +00:00
afourney
9388bae02d
Agent description blog post (#1092)
* Added blog post for the description field.

* Added a tips section, and correct numerous spelling and grammar issues.

* Added linkes to the AgentDescription blog post, and updated author information.

* Update index.mdx

system_prompt -> system_message
2023-12-29 19:45:27 +00:00
Olaoluwa Ademola Salami
75fc27849c
wip (#956) 2023-12-29 00:55:33 +00:00
Maxim Saplin
30daa1eac5
[Docs/Contributing] Clarification on running non-OpenAI tests (#1052)
* Update Contribute.md

* Removed mentioning of OAI_CONFIG_LIST

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-28 18:33:00 +00:00
hugo-syn
223ac652fd
fix: Fix typo (#1068)
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
2023-12-28 07:24:54 +00:00
Eric Zhu
14a9672032
Update setup.py (#1071)
Fix dependency error introduced when merging #1044
2023-12-27 18:58:19 +00:00
Ian
d583ad833f
Filter out candidates with the same name but different instructions, … (#925)
* Filter out candidates with the same name but different instructions, file IDs, and function names

* polish

* improve log

* improving log

* improve log

* Improve function signature (#2)

* try to fix ci

* try to fix ci

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-12-27 14:21:09 +00:00
Shaokun Zhang
dd516f250e
AgentOptimizer (#1053)
* first

* first

* update figure

* update figure

* update txt+figure

* format

* blog

* blog update

* format

* update

* update

* rename notebook

* rename

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
2023-12-27 06:06:48 +00:00
Yiran Wu
9b7a42fc57
update (#1063) 2023-12-26 18:29:01 +00:00
rlam3
5b420f1d9a
Add poetry setup (#824)
* Add poetry setup

* Add description of poetry linking to it's docs

* Update website/docs/Installation.md

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

* fix with pre-commit

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2023-12-26 07:49:20 +00:00
Shobhit Vishnoi
ebd5de9501
Add additional docs in retrieval agent if required (#1028)
* Update conversable_agent.py

* Add files via upload

* Delete notebook/Async_human_input.ipynb

* Add files via upload

* refactor:formatter

* feat:updated position

* Update dbutils.py

* added feature to add docs in retrieve

* Update dbutils.py

* Update retrieve_user_proxy_agent.py

* Update retrieve_utils.py

* Update qdrant_retrieve_user_proxy_agent.py

* Update qdrant_retrieve_user_proxy_agent.py

* feat:fixed pre commit issue

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: svrapidinnovation <sv@rapidinnovation.dev>
Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-12-25 21:25:03 +00:00
Ram Rachum
70cc1f439d
Fix exception causes all over the codebase (#1014) 2023-12-25 20:15:38 +00:00
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