Commit Graph

179 Commits

Author SHA1 Message Date
Yiran Wu f64a07428a
Merge branch 'main' into compression 2023-10-21 17:20:34 -04:00
Sean Connelly df4882524f
Resolves Typo Correction #336 (#338)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-21 18:46:14 +00:00
Ricky Loynd d22b6b2006
TeachableAgent (#278)
* Initial commit.

* Disable LLM response caching.

* Add teachability option to setup.py

* Modify test to use OAI_CONFIG_LIST as suggested in the docs.

* Expand unit test.

* Complete unit test.

* Add filter_dict

* details

* AnalysisAgent

* details

* More documentation and debug output.

* Support retrieval of any number of relevant memos, including zero.

* More robust analysis separator.

* cleanup

* teach_config

* refactoring

* For robustness, allow more flexibility on memo storage and retrieval.

* de-dupe the retrieved memos.

* Simplify AnalysisAgent. The unit tests now pass with gpt-3.5

* comments

* Add a verbosity level to control analyzer messages.

* refactoring

* comments

* Persist memory on disk.

* cleanup

* Use markdown to format retrieved memos.

* Use markdown in TextAnalyzerAgent

* Add another verbosity level.

* clean up logging

* notebook

* minor edits

* cleanup

* linter fixes

* Skip tests that fail to import openai

* Address reviewer feedback.

* lint

* refactoring

* Improve wording

* Improve code coverage.

* lint

* Use llm_config to control caching.

* lowercase notebook name

* Sort out the parameters passed through to ConversableAgent, and supply full docstrings for the others.

* lint

* Allow TextAnalyzerAgent to be given a different llm_config than TeachableAgent.

* documentation

* Modifications to run openai workflow.

* Test on just python 3.10.
Replace agent with agent teachable_agent as recommended.

* Test on python 3.9 instead of 3.10.

* Remove space from name -> teachableagent

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-21 02:27:10 +00:00
Li Jiang 88ebb77048
Add group chat and retrieve agent example (#227)
* Add group chat and retrieve agent example

* Fix link and models

* Support call rag in a group chat and not init with rag

* Fix n_results logic

* Update notebook

* Fix format

* Improve wording

* Update variable name

* Revert to main

* Update function call

* Update keys

* Update contents

* Update contents
2023-10-17 20:31:27 +00:00
kevin666aa ec9ff7fa14 fix bug, remove affect to originally functionality 2023-10-17 15:43:11 -04:00
kevin666aa ffb314cb08 Merge remote-tracking branch 'origin/main' into compression 2023-10-17 13:25:22 -04:00
kevin666aa 5e826e983a Merge branch 'compression' of github.com:microsoft/autogen into compression 2023-10-16 22:11:45 -04:00
kevin666aa 26c8cf7517 fix bug, revise prompt 2023-10-16 22:11:29 -04:00
Chi Wang 294e006ac9
Lancgain tool bridge (#262) (#263)
* Added a LangChain tooling bridge example

* Updated Doco

* Update agentchat_langchain.ipynb

remove key

---------

Co-authored-by: Elliot Wood <gigaflare_elliot@hotmail.com>
Co-authored-by: Li Jiang <lijiang1@microsoft.com>
2023-10-16 23:23:27 +00:00
Sheetali Maity 4fb2f1f449
Added figure to notebook (#246)
Co-authored-by: Li Jiang <lijiang1@microsoft.com>
2023-10-16 17:20:53 +00:00
Li Jiang 19551d5681
Merge branch 'main' into compression 2023-10-16 10:26:10 +08:00
Qingyun Wu 6156faaa0a
Typo (#234)
* fix typo

* wording

* typo
2023-10-13 22:07:17 +00:00
Shruti Patel c46f8e54f1
Spelling fixes. (#220)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-13 21:34:15 +00:00
kevin666aa bbc90e5994 update 2023-10-12 15:26:33 -04:00
kevin666aa a60dd8e9fc clean up 2023-10-12 15:25:22 -04:00
kevin666aa 0e9168a27a update 2023-10-11 17:56:00 -04:00
Yiran Wu f6ebf1132b
Merge branch 'main' into compression 2023-10-11 09:12:48 -04:00
Ikko Eltociear Ashimine 688cf44d0e
Fix typo in agentchat_MathChat.ipynb (#191)
requries -> requires
2023-10-10 17:43:55 +00:00
kevin666aa a9ce4c7699 Merge remote-tracking branch 'origin/main' into compression 2023-10-07 12:29:57 -04:00
lars.gersmann 62b6357294
docs: typo fixed (#129) 2023-10-07 04:04:22 +00:00
kevin666aa 556b80afa0 update 2023-10-06 14:52:29 -04:00
kevin666aa 791019c4a4 add compression agent 2023-10-06 09:50:14 -04:00
Aaron 5c2a268d95
openai_utils.py - functionality for instantiating config_list with a .env file (#68)
* FORMATTING

* UPDATE - OAI __init__.py

* ruff

* ADD - notebook covering oai API configuration options and their different purposes

* ADD openai util updates so that the function just assumes the same environment variable name for all models, also added functionality for adding API configurations like api_base etc.

* ADD - updates to config_list_from_dotenv and tests for openai_util testing, update example notebook

* UPDATE - added working config_list_from_dotenv() with passing tests, and updated notebook

* UPDATE - code and tests to potentially get around the window build permission error, used different method of producing temporary files

---------

Co-authored-by: Ward <award40@LAMU0CLP74YXVX6.uhc.com>
2023-10-05 04:45:11 +00:00
Aaron 4adbffa94b
retrieve_utils.py - Updated.py to have the ability to parse text from PDF Files (#50)
* UPDATE - Updated retrieve_utils.py to have the ability to parse text from pdf files

* UNDO - change to recursive condition

* UPDATE - updated agentchat_RetrieveChat.ipynb to clarify which file types are accepted to be in the docs path

* ADD - missing import

* UPDATE - setup.py to have PyPDF2 in retrievechat

* RE-ADD - urls

* ADD - tests for retrieve utils, and removed deprecated PyPdf2

* Update agentchat_RetrieveChat.ipynb

* Update retrieve_utils.py

Fix format

* Update retrieve_utils.py

Replace print with logger

* UPDATE - added more specific exception to PDF decryption try/catch

* FIX - typo, return statement at wrong indentation in extract_text_from_pdf

---------

Co-authored-by: Ward <award40@LAMU0CLP74YXVX6.uhc.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2023-10-01 10:22:58 +00:00
Juanma Cuevas d802b7ae04
Improves clarity and fixes punctuation in README and Multi-agent documentation (#40)
* Improves clarity and fixes punctuation in README and Multi-agent documentation

* fix broken colab link to agentchat_groupchat_research.ipynb (others are fine)

* fix typos, improves readability
2023-09-29 17:59:30 +00:00
Chi Wang 402c5bf8d1
Fix bug for windows and improve sample code (#38)
* fix bug for windows

* fix bug for windows

* more clear example

* link to example

* add test

* format

* comment

* fix assertion error

* fix test error and links

---------

Co-authored-by: Chi Wang (MSR) <chiw@microsoft.com>
2023-09-28 20:14:36 +00:00
Chi Wang ddf10044a1 cleanup 2023-09-27 16:29:12 +00:00
Chi Wang 8e9cda716e Merge branch 'main' of https://github.com/microsoft/autogen 2023-09-27 04:22:54 +00:00
Chi Wang 9f3af1ef80 cleanup 2023-09-27 04:20:22 +00:00
Li Jiang 11088181b6
Improve RetrieveChat (#6)
* Upsert in batch

* Improve update context, support customized answer prefix

* Update tests

* Update intermediate answer

* Fix duplicate intermediate answer, add example 6 to notebook

* Add notebook results

* Works better without intermediate answers in the context

* Bump version to 0.1.2

* Remove commented code and add descriptions to _generate_retrieve_user_reply

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-09-27 01:22:50 +00:00
Chi Wang 23ceac0fe0 cleanup 2023-09-25 21:42:24 +00:00
Chi Wang efa8213d9d cleanup 2023-09-21 15:40:14 +00:00
Chi Wang 23633ae744 cleanup 2023-09-21 15:39:52 +00:00
Chi Wang ec85b4984d cleanup 2023-09-19 02:26:57 +00:00
Chi Wang a4b9297719 cleanup 2023-09-16 16:34:16 +00:00
Chi Wang 99f2f82fa3 Merge remote-tracking branch 'upstream/autogen-links' into code 2023-09-16 16:34:04 +00:00
Chi Wang bc4473fe8a cleanup 2023-09-16 10:57:57 +00:00
Chi Wang 4886cb5689
Rename Responsive -> Conversable (#1202)
* responsive -> conversable

* preview

* rename

* register reply

* rename and version

* bump version to 2.1.0

* notebook

* bug fix
2023-09-12 00:07:35 +00:00
Chi Wang 599731cb22
rename human to user_proxy (#1215)
* rename human to user_proxy

* notebook update and bug fix
2023-09-11 14:33:47 +00:00
Qingyun Wu 3bfc5f21d2 Merge remote-tracking branch 'origin/main' into autogen-links 2023-09-11 09:39:55 -04:00
Chi Wang 0cb79dfdff
group chat for visualization (#1213)
* group chat for visualization

* show figure

* webpage update

* link update

* example 2

* example 2

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-09-10 23:20:45 +00:00
Qingyun Wu faee51ca9c update links 2023-09-08 10:07:19 -04:00
Chi Wang 93b9e09166
admin takeover in group chat (#1209)
* admin takeover in group chat

* comments

* add comments
2023-09-07 02:17:53 +00:00
Chi Wang 5f9b514be7
suffix in model name (#1206)
* suffix in model name

* bump version to 2.0.3
2023-09-04 02:32:51 +00:00
Chi Wang 44932712c4
Prompt improvement (#1203)
* prompt improvement

* image None for unsupported lang

* notebook update

* prompt improvement
2023-08-30 00:54:09 +00:00
Chi Wang 57a2bea95a
prompt improvement (#1188)
* test

* chart

* plan

* separate

* bump version to 2.0.1

* explain plan and code/lang

* notebook update

* notebook update

* typo

* plan

* match can be None
2023-08-27 22:16:52 +00:00
Chi Wang 7ab4d114d7
silent; code_execution_config; exit; version (#1179)
* silent; code_execution_config; exit; version

* url

* url

* readme

* preview

* doc

* url

* endpoints

* timeout

* chess

* Fix retrieve chat

* config

* mathchat

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2023-08-14 07:09:45 +00:00
Li Jiang 700ff05874
Add RetrieveChat (#1158)
* Add RetrieveChat notebook, RetrieveAssistantAgent and RetrieveUserProxyAgent

* Update according to comments

* Add output

* Add tests, merge main, address comments

* Fix tests

* Merge main

* Remove unnecessary code

* Update test

* Update notebook, some functions

* Fix print issue

* Update notebook

* Update notebook

* Update notebook

* Improve retrieve utils and update notebook

* Update vector db creation method

* Update notebook

* Update notebook

* Add terminate if no more context

* Update prompt and notebook, add example for update context

* Update results

* Update results

* Update results of update context

* Fix typo

* Add table of contents

* Update table of contents
2023-08-13 12:51:54 +00:00
Chi Wang c44d2f4a01
support async in agents (#1178)
* Make auto reply method pluggable

* support async

* async

* allow richer trigger types

* test list

* rename key
2023-08-08 01:34:47 +00:00
Chi Wang a603e6dddc
Make auto reply method pluggable (#1177)
* Make auto reply method pluggable

* allow richer trigger types

* test list
2023-08-07 18:41:58 +00:00