1184 Commits

Author SHA1 Message Date
Maxim Saplin
083ba32a73
Change contrib-tests.yml tests to use --skip-openai (#1132)
* Fixing RetrieveChat part

* All 5 test groups are updated to --skip-openai

* sys.path.append() fix
2024-01-10 01:42:07 +00:00
Chi Wang
78fe8f92b4
check tool_returns (#1187)
* check tool_returns

* bump version to 0.2.6
2024-01-10 00:39:49 +00:00
Davor Runje
9e45e9fe48
Documentation: polish docs for tools calls (#1185)
* polish docs

* bug fixing
2024-01-09 22:45:34 +00:00
Brian Finney
c1036997d2
cleaner definition of tool_responses fixes #1174 (#1182) 2024-01-09 22:40:25 +00:00
Chi Wang
2ca8aae699
bump version to 0.2.5 (#1180) v0.2.5 2024-01-08 21:29:57 +00:00
Dapao Xie
5a725913ec
add __init__.py for capabilities (#1177)
* Create __init__.py

* Update __init__.py

* Update __init__.py

Fix formatting to satisfy black.

---------

Co-authored-by: Ricky Loynd <riloynd@microsoft.com>
2024-01-08 21:05:25 +00:00
bitnom
78a2d8448d
Handle streamed function calls (#1118)
* Handle streamed function calls

* apply black formatting

* rm unnecessary stdout print

* bug fix

---------

Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-01-08 06:22:31 +00:00
Davor Runje
1c4ae3d303
nbqa adedd to pre-commit, added black and ruff for notebooks (#1171)
* nbqa adedd to pre-commit, added black and ruff for notebooks

* polishing

* polishing

* polishing
2024-01-08 03:47:01 +00:00
Qingyun Wu
643a031062
guide on the usage of docker (#1111)
* docker documentation

* docker doc

* clean contribute.md

* minor change

* Add more detailed description

* add docker instructions

* more dockerfiles

* readme update

* latest python

* dev docker python version

* add version

* readme

* improve doc

* improve doc

* path name

* naming

* Update website/docs/Installation.md

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

* Update website/docs/Installation.md

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

* Add suggestion to install colima for Mac users

* Update website/docs/Installation.md

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

* Update website/docs/Installation.md

Co-authored-by: olgavrou <olgavrou@gmail.com>

* update doc

* typo

* improve doc

* add more options in dev file

* contrib

* add link to doc

* add link

* Update website/docs/Installation.md

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

* Update website/docs/Installation.md

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

* instruction

* Update website/docs/FAQ.md

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

* FAQ

* comment autogen studio

---------

Co-authored-by: Yuandong Tian <yuandong@fb.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: olgavrou <olgavrou@gmail.com>
2024-01-08 02:36:04 +00:00
Ricky Loynd
3680197f70
Teachability for any agent (#1091)
* Partial implementation

* Partial implementation

* Fixes

* update tests

* cleanup

* update tests

* comments

* logging

* wording

* underscore

* Extend notebook for teachable GPTAssistantAgent

* Notebook for teachable GPTAssistantAgents

* Update notebook

* Update notebook

* Update notebook

* Update notebook

* revert file

* Update blog post and other documentation.

* pre-commit

* Address reviewer feedback.

* Add new nb link to examples page.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.4
2024-01-07 19:59:42 +00:00
Chi Wang
172df5545d
contributor wall & news update (#1165)
* bump version to 0.2.4

* update

* display more contributors in the wall

* news update

* news update

---------

Co-authored-by: kevin666aa <yrwu000627@gmail.com>
2024-01-07 15:50:39 +00:00
Davor Runje
8f065e06e4
Add codespell to pre-commit hooks and fix spelling of existing files (#1161)
* fixed spelling, minor errors and reformatted using black

* polishing

* added codespell to pre-commit hooks, fixed a number of spelling errors and a few minor bugs in the code

* update autogen library version in notebooks

* update autogen library version in notebooks

* update autogen library version in notebooks

* update autogen library version in notebooks

* update autogen library version in notebooks
2024-01-07 01:41:33 +00:00
Chi Wang
295b8355f1
bump version to 0.2.4 (#1160)
* bump version to 0.2.4

* update

---------

Co-authored-by: kevin666aa <yrwu000627@gmail.com>
2024-01-07 00:45:36 +00:00
Brian Finney
40dbf31a92
[Core] [Tool Call] adjust conversable agent to support tool_calls (#974)
* adjust conversable and compressible agents to support tool_calls

* split out tools into their own reply def

* copilot typo

* address review comments

* revert compressible_agent and token_count_utils calls

* cleanup terminate check and remove unnecessary code

* doc search and update

* return function/tool calls as interrupted when user provides a reply to a tool call request

* fix tool name reference

* fix formatting

* fix initiate receiving a dict

* missed changed roled

* ignore incoming role, more similiar to existing code

* consistency

* redundant to_dict

* fix todo comment

* uneeded change

* handle dict reply in groupchat

* Fix generate_tool_call_calls_reply_comment

* change method annotation for register_for_llm from functions to tools

* typo autogen/agentchat/conversable_agent.py

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

* add deprecation comments for function_call

* tweak doc strings

* switch to ToolFunction type

* update the return to

* fix generate_init_message return type

* Revert "fix generate_init_message return type"

This reverts commit 645ba8b76afa06f160223ecdac6f3dc1822fd249.

* undo force init to dict

* fix notebooks and groupchat tool handling

* fix type

* use get for key error

* fix teachable to pull content from dict

* change single message tool response

* cleanup unnessary changes

* little better tool response concatenation

* update tools tests

* add skip openai check to tools tests

* fix nits

* move func name normalization to oai_reply and assert configured names

* fix whitespace

* remove extra normalize

* tool name is now normalized in the generate_reply function, so will not be incorrect when sent to receive

* validate function names in init and expand comments for validation methods

* fix dict comprehension

* Dummy llm config for unit tests

* handle tool_calls set to None

* fix tool name reference

* method operates on responses not calls

---------

Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-01-06 17:55:25 +00:00
Linxin Song
e673500129
[AutoBuild] Supporting build agents from library; supporting generating agent descriptions (#1039)
* 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

* [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 <jieyuz2@cs.washington.edu>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2024-01-06 17:23:23 +00:00
afourney
e5ebdb66bf
Remove GPT-4 as the default model. (#1072)
* Remove GPT-4 as the default model.

* Updated test_compressible_agent to work around a bug that would otherwise default to gpt-4. Revist after #1073 is addressed.

* Worked around another bug in test_compressible_agent. It seems the config_list was always empty!

* Reverted changes to compressible agent.

* Noted that GPT-4 is the preferred model in the OAI_CONFIG_LIST_sample and README.

* Fixed failing tests after #1110

* Update OAI_CONFIG_LIST_sample

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

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-05 14:27:48 +00:00
Maxim Saplin
3f343654bd
Let run tests directly via python test_xyz.py, fix for conftest import via sys.path.append (#1144)
* Runnig tests directly

* All tests with contrib add sys.path
2024-01-05 14:24:49 +00:00
Eric Zhu
55b03bfac6
check if docker is installed if user_docker is True (#1145) 2024-01-05 02:34:59 +00:00
Chi Wang
871e9e28b3
bump version to 0.2.3 (#1140) v0.2.3 2024-01-04 21:07:23 +00:00
Li Jiang
fb1230e0c8
Add a sample notebook for using AutoGen in Microsoft Fabric (#940)
* Add fabric example

* Support both 0.1.x and 0.2.x

* Fix comments

* update ecosystem

* update png

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-04 14:16:22 +00:00
Yiran Wu
6bf33dfede
[Core] Fix update_usage_summary when response doesn't have usage attribute (#1008)
* update cost for cache

* fix test

* fix bug when reponse doesn't have usage info

* update setupversion

* update

* update

* Update setup.py

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

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-01-04 00:40:21 +00:00
Xiaoyun Zhang
1508f53edd
update global.json in dotnet-run-openai-test-and-notebook.yml (#1135)
* update feed in dotnet-run-openai-test...yml

* Update dotnet-run-openai-test-and-notebooks.yml
2024-01-03 20:35:42 +00:00
Sunil Sattiraju
f8d6e7d3c9
fix typo agent_chat.md (#1131) 2024-01-03 17:41:52 +00:00
Davor Runje
82cc88e36c
upgrade base image to the latest Debian (Bookworm) (#1133) 2024-01-03 17:40:43 +00:00
afourney
4fcc45f140
[Core] Throw an error when the OAI_CONFIG_LIST is missing. (#1082)
* Throw an explicit and proper error when someone asks to load the OAI_CONFIG_LIST, and it is missing.

* Updated to use pytest.raises. Added docstring. Updated some tests to not try to load the config_list when skipping OAI tests.

* Fixed wrong indentation in config_list_from_json, and updated test_utils to work with non-empty lists.

* Read key location from global constants.

* Added missingpath.

* Moved config_list_from_json to inside a skip check.
2024-01-03 16:58:58 +00:00
Burhanuddin Mustafa Lakdawala
fed9384414
Update index.mdx (#1122) 2024-01-03 06:40:53 +00:00
Ikko Eltociear Ashimine
7c2c923443
Update tutorial.ipynb (#1119)
runnning -> running
2024-01-03 05:16:37 +00:00
Dragos Campean
98d148046b
[AutoGen Studio] Allow multiline strings in chat input (#1105)
* [AutoGen Studio] Allow multiline strings in chat input

* make cogicon spin/animate during loading. minor fix to header issue.

---------

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-01-03 00:24:24 +00:00
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