3039 Commits

Author SHA1 Message Date
Ricky Loynd
0468f53210
Restore TeachableAgent tests (#761)
* Update chat_with_teachable_agent.py to v2.

* Update agentchat_teachability.ipynb to v2.

* Add test of teachability accuracy.

* Update installation instructions.

* Add to contrib tests.

* pre-commit fixes

* Apply reviewer suggestions to test workflows.
2023-11-27 02:10:02 +00:00
Qingyun Wu
d8d05279a5
update readmex (#759) v0.2.0 2023-11-24 19:50:39 +00:00
Chi Wang
b257afea5a
bump version to 0.2.0 (#758) 2023-11-24 18:55:13 +00:00
Monarch Wadia
28001126e7
Fixed #279 (#757)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-24 18:54:28 +00:00
Ian
c705c6a6f8
support retrievaling assistant by name (#718)
* support assistant retrieval using name

* address comment

* Update autogen/agentchat/contrib/gpt_assistant_agent.py

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

* make code more reading friendly

* ignore test error

* format code

* Update autogen/agentchat/contrib/gpt_assistant_agent.py

typo fix

* fix test case

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-24 17:46:50 +00:00
Beibin Li
6087b5a4f8
Add DALLE Notebook Example (#744)
* Add DALLE Example

* md update for notebook

* Update notebook/agentchat_dalle_and_gpt4v.ipynb

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-24 15:19:42 +00:00
Jia Ji Chen
140a023b13
Update OAI_CONFIG_LIST_sample (#655)
* Update OAI_CONFIG_LIST_sample

replace to api_base from base_url.  api_base is the correct name, otherwise it will error with invalid URL

* put base_url back, add a comment that "api_base" should be used for v0.1.x

* fix typo

* Update OAI_CONFIG_LIST_sample

grammar fix

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

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-22 21:28:29 +00:00
gagb
8f7f870814
Update agentchat_oai_assistant_retrieval.ipynb (#732)
* Update agentchat_oai_assistant_retrieval.ipynb

our -> your to reduce confusion

* Update notebook/agentchat_oai_assistant_retrieval.ipynb

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

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-22 21:23:08 +00:00
Ikko Eltociear Ashimine
49fe9d729b
doc: Update FAQ.md (#742)
occurences -> occurrences
2023-11-22 21:22:21 +00:00
Joshua Kim
9d2ee46ebc
Controlling select_speaker using Graph Modelling Language (#720)
* Completed notebook on using GML

* Added optional dependencies for graph

* Run pre-commit

* Added pytest

* Added LLM to pick an agent before catch-all

* Updated website links to notebook

* Reviewer's suggestions

* pre-commit checked

* pre-commit passed

* Change beta version
2023-11-22 20:36:52 +00:00
Markus Archer Goulden Dreyer
f6498dc395
Update OAI_CONFIG_LIST_sample (#734) 2023-11-21 18:08:54 +00:00
Dear.Va
d22664f7e7
improve CODE_BLOCK_PATTERN for a more robust code match (#571)
* improve CODE_BLOCK_PATTERN for more robust match

* improve and add tests

* Add support for \r\n

* Updated the regex to support indented code blocks (per the Markdown spec). Added test cases for both.

* Update formatting

---------

Co-authored-by: Adam Fourney <adamfo@microsoft.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.0b6
2023-11-21 05:06:56 +00:00
Julia Kiseleva
19c7da2dd1
Adding first version of AgentEval -- a framework for assessing task utility for LLM-powered applications (#681)
* add agenteval-notebook for math problems and the blog post about it

* update gitignore

* updates to notebook

* adding folder for the logs

* adding math problems logs

* adding folder for alfworld logs

* added limitiation and future work to blog post

* minor edits blog post

* adding changes

* reorg

* modify the main notebook

* modification of the main notebook

* remove wrong notebook

* uploading new notebook

* update agenteval notebook

* change the sample

* Update agenteval_cq_math.ipynb

* adding final changes to notebook

* updated framework picture

* Update index.mdx

* Update index.md

* Add files via upload

* updates to notebool

* revise the blog

* revise the blog

* update the agent img

* revise the blog

* revise the blog

* Excluded model logs from the main branch, you can find them in agenteval branch

* Fixed pre-commit formatting.

* Update website/blog/2023-11-11-AgentEval/index.mdx

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

* update gitignore

* update index.mdx

* update authors.yml by adding Negar and Julia

* remove md file

* remove md file

* update gitignore

* update authors file

* pre-commit checks

* pre-commit checks on authors.yml

* pre-commit checks on authors.yml

* update index.mdx

* update authors.yml by adding Negar and Julia

* updated the blog-post version 1

* updated the blog-post: TL;DR is ready

* updated the blog-post: first part of introduction is ready

* updated figures: typos on fig 1, changed terminology on the fig 2

* upadated the Framework part

* fixed redering issues

* upload zip file instead of single samples

* update prealgebra.zip

* update

* upload

* update z

* update naming

* update zip

* update the agenteval notebook

* update the notebook - removing unmercenary logs

* updated fig 1 and references to it

* updated fig 1

* incorporated PR comments

* merged agenteval branch

* final changes to the blog

* updated taxonomy

* update notebook

* minor changes to the blog

* Fixed formatting

* Update the link in agenteval_cq_math.ipynb

* update the blog and link in notebook

* Update index.mdx

* change folder name

* Changes to be committed:
	modified:    OAI_CONFIG_LIST_sample.txt

* add sample OAI file

* fix the url link to colab and typos

* fix the url link to colab and typos

* add authors

* update profile pic

* "update authors"

* fixing the problem in test_groupchat.py

* update the title lower case

* reverting changes in setup.py

* rerun pre-commit

---------

Co-authored-by: Negar Arabzadeh <ngr.arabzadeh@gmail.com>
Co-authored-by: Julia Kiseleva <jukisele@microsoft.com>
Co-authored-by: afourney <adamfo@microsoft.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-21 04:07:33 +00:00
Li Jiang
07646d448c
Support custom text formats and recursive (#496)
* Add custom text types and recursive

* Add custom text types and recursive

* Fix format

* Update qdrant, Add pdf to unstructured

* Use unstructed as the default text extractor if installed

* Add tests for unstructured

* Update tests env for unstructured

* Fix error if last message is a function call, issue #569

* Remove csv, md and tsv from UNSTRUCTURED_FORMATS

* Update docstring of docs_path

* Update test for get_files_from_dir

* Update docstring of custom_text_types

* Fix missing search_string in update_context

* Add custom_text_types to notebook example
2023-11-21 03:53:50 +00:00
afourney
ef1c3d3f7f
Fixes cache issue from 703 and 679 (#707)
* Avoid creating cache database when cache_seed is None (which disables cache)

* Add some debugging.

* Removed some debugging.

* Update autogen/oai/client.py

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

* Fixed missing filter function logic from oai/client.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-20 20:32:55 +00:00
Victor Dibia
143e49c6e8
Sample Web Application Built with AutoGen (#695)
* Adding research assistant code

* Adding research assistant code

* checking in RA files

* Remove used text file

* Update README.md to include Saleema's name to the Contributors list.

* remove extraneous files

* update gitignore

* improve structure on global skills

* fix linting error

* readme update

* readme update

* fix wrong function bug

* readme update

* update ui build

* cleanup, remove unused modules

* readme and docs updates

* set default user

* ui build update

* add screenshot to improve instructions

* remove logout behaviour, replace with note to developers to add their own logout logic

* Create blog and edit ARA README

* Added the stock prices example in the readme for ARA

* Include edits from review with Saleema

* fix format issues

* Cosmetic changes for betting debug messages

* edit authors

* remove references to request_timeout to support autogen v0.0.2

* update bg color for UI

* readme update

* update research assistant blog post

* omit samples folder from codecov

* ui build update + precommit refactor

* formattiing updates  fromo pre-commit

* readme update

* remove compiled source files

* update gitignore

* refactor, file removals

* refactor for improved structure - datamodel, chat and db helper

* update gitignore

* refactor, file removals

* refactor for improved structure - datamodel, chat and db helper

* refactor skills view

* general refactor

* gitignore update and general refactor

* skills update

* general refactor

* ui folder structure refactor

* improve support for skills loading

* add fetch profile default skill

* refactor chat to autogenchat

* qol refactor

* improve metadata display

* early support for autogenflow in ui

* docs update general refactor

* general refactor

* readme update

* readme update

* readme and cli update

* pre-commit updates

* precommit update

* readme update

* add steup.py for older python build versions

* add manifest.in, update app icon

* in-progress changes to agent specification

* remove use_cache refs

* update datamodel, and fix for default serverurl

* request_timeout

* readme update, fix autogen values

* fix pyautogen version

* precommit formatting and other qol items

* update folder structure

* req update

* readme and docs update

* docs update

* remove duplicate in yaml file

* add support for explicit skills addition

* readme and documentation updates

* general refactor

* remove blog post, schedule for future PR

* readme update, add info on llmconfig

* make use_cache False by default unless set

* minor ui updates

* upgrade ui to use latest uatogen lib version 0.2.0b5

* Ui refactor, support for adding arbitrary model specifications

* formatting/precommit checks

* update readme, utils default skill

---------

Co-authored-by: Piali Choudhury <pialic@microsoft.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-20 18:40:30 +00:00
Surav Shrestha
a4d9ce8c5b
fix typos in function helper text (#503)
* fix typos in autogen/agentchat/conversable_agent.py

* fix typos in autogen/code_utils.py

* fix typos in autogen/oai/completion.py

* fix typos in test/agentchat/test_assistant_agent.py

* Update test/agentchat/test_assistant_agent.py

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

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-19 19:38:49 +00:00
Chi Wang
75cc763ff8
bump version to 0.2.0b6 (#710)
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-18 18:17:34 +00:00
Qingyun Wu
7c528a601c
add relevant dependency to the oai test workflow (#712)
* add oaitest dependency

* mock

* mock

* install

* get mock from unittest

* get mock from unitteset
2023-11-18 17:13:37 +00:00
afourney
f790109271
Re-added completion logging when using older versions of autogen. (#701) 2023-11-18 17:11:25 +00:00
gagb
1b1cfaf450
Update FAQ.md with api_base vs base_url question (#672)
added a faq for api_base vs base_url because people were asking about it frequently.
2023-11-18 12:58:06 +00:00
Li Jiang
370ebf5e00
Update speaker selector in GroupChat and update some notebooks (#688)
* Add speaker selection methods

* Update groupchat RAG

* Update seed to cache_seed

* Update RetrieveChat notebook

* Update parameter name

* Add test

* Add more tests

* Add mock to test

* Add mock to test

* Fix typo speaking

* Add gracefully exit manual input

* Update round_robin docstring

* Add method checking

* Remove participant roles

* Fix versions in notebooks

* Minimize installation overhead

* Fix missing lower()

* Add comments for try_count 3

* Update warning for n_agents < 3

* Update warning for n_agents < 3

* Add test_n_agents_less_than_3

* Add a function for manual select

* Update version in notebooks

* Fixed bugs that allow speakers to go twice in a row even when allow_repeat_speaker = False

---------

Co-authored-by: Adam Fourney <adamfo@microsoft.com>
2023-11-17 13:56:11 +00:00
Shaokun Zhang
3ab8c97eb6
update side bar (#702)
Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
2023-11-17 12:40:33 +00:00
afourney
f939dda150
Makes select_speaker more robust by checking for mentions anywhere. (#669)
* Makes select_speaker more robust by checking for agents mentioned anywhere in the selection string. Addresses 663.

* Added test coverage for group chat mentions. Refactored mention counter to own function.

* Fixed pre-commit formatting.
2023-11-17 02:30:24 +00:00
spore
d3401599bd
Fix some type annotations and edge cases (#572)
* Fix some type annotations in agents

This fixes some errors in type annotations of `ConversableAgent`,
`UserProxyAgent`, `GroupChat` and `AssistantAgent` by adjusting the type
signature according to the actual implementation. There should be no
change in code behavior.

* Fix agent types in `GroupChat`

Some `Agent`s are actually required to be `ConversableAgent` because
they are used as one.

* Convert str message to dict before printing message

* Revert back to Agent for GroupChat

* GroupChat revert update

---------

Co-authored-by: Beibin Li <beibin79@gmail.com>
Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
2023-11-16 20:37:36 +00:00
Kosta Petan
926ef62764 error handling for building understanding 2023-11-16 20:28:33 +00:00
Kosta Petan
0cd4e32f23 simple dev understanding 2023-11-16 19:59:35 +00:00
gagb
fe0092516b
Add RAG gptassistant example notebook (#694)
* Add RAG gptassistant example notebook

* add notebook links

* Update notebook md

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-16 17:15:21 +00:00
Haotian Zheng
4e3723dd54
Update index.mdx (#696) 2023-11-16 15:02:25 +00:00
Ian
a730a63e30
fix assistant creating without file (#689)
* fix assistant creating without file

* add a simple unit test

* format code
2023-11-16 12:51:32 +00:00
afourney
b0a6d72b8c
Addresses issue 635, relating to newlines in Windows. (#678) 2023-11-15 22:27:10 +00:00
afourney
5dfc73dfb0
Added an 'auto' mode to last_n_messages (#693)
* Added an 'auto' mode to last_n_messages

* Added tests for the last_n_messages = 'auto' mode

* Added test one additional test case that was overlooked.
2023-11-15 22:26:04 +00:00
afourney
72f488e4d7
Allows users to specify a different requirements.txt file to install in Docker, to test other versions or branches of Autogen. Closes #662 (#671) 2023-11-15 00:33:09 +00:00
afourney
c37453735a
Sets the umask before executing the task in Docker. (#593)
* Sets the umask before executing the task in Docker.

* Added version backward compatibility for disabling cache and setting timeouts.
2023-11-14 21:14:38 +00:00
Olaoluwa Ademola Salami
d542340856
Issue-560 (#578)
* Issue-560

* fixed

* answers bothe question
2023-11-14 03:08:06 +00:00
gagb
a5e3c9daa1
Update index.mdx with version number (#670) 2023-11-13 22:05:55 +00:00
gagb
467f73847b
Fix typos in affiliation (#667) 2023-11-13 21:45:49 +00:00
Qingyun Wu
841b533da8
add doc about openai assistants (#659)
* add doc for openai assistants

* Update README.md

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

* add basic notebook

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
0.2.0b5
2023-11-13 21:05:30 +00:00
gagb
08145bfbce
Add blog post for open ai assistants (#638)
* Add outline + update author list

* Update blog

* Fix typo

* Update website/blog/2023-11-13-OAI-assistants/index.mdx

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>

* Update website/blog/2023-11-13-OAI-assistants/index.mdx

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>

* Update website/blog/2023-11-13-OAI-assistants/index.mdx

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>

* Add version number

* Add acknowledgements

* Update

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-13 20:26:05 +00:00
LeoLjl
4711260582
Add agentchat_oai_assistant_groupchat.ipynb (#656)
* Add agentchat_oai_assistant_groupchat.ipynb

* Update notebook/agentchat_oai_assistant_groupchat.ipynb

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

* Update agentchat_oai_assistant_groupchat.ipynb

* Update notebook/agentchat_oai_assistant_groupchat.ipynb

* Update notebook/agentchat_oai_assistant_groupchat.ipynb

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-13 17:47:00 +00:00
Jieyu Zhang
2ffc3fddac
fix tag in EcoAssistant blog (#657) 2023-11-13 17:27:32 +00:00
LeoLjl
6d621a9840
Add openai_client as property and update notebook. (#654)
* Initial commit

* Add code interpreter notebook.

* Update code interpreter notebook.

* Update notebook.

* Update agentchat_oai_code_interpreter.ipynb

* Update agentchat_oai_code_interpreter.ipynb

* Add openai_client as property.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-13 13:21:20 +00:00
LeoLjl
991d2066d5
Add code interpreter for GptAssistant Notebook. (#644)
* Initial commit

* Add code interpreter notebook.

* Update code interpreter notebook.

* Update notebook.

* Update agentchat_oai_code_interpreter.ipynb

* Update agentchat_oai_code_interpreter.ipynb

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-13 04:02:38 +00:00
Jieyu Zhang
c1d6a5e54c
add EcoAssistant blog (#647)
* add EcoAssistant blog

* add blog

* Rename blog.md to blog.mdx

* Rename blog.mdx to index.mdx

* Update index.mdx

* Update index.mdx
2023-11-13 00:13:36 +00:00
Chi Wang
337ac4c5ce
bump version (#645)
* bump version

* use AssertionError

* revise error

* oai import

* ImportError

* error

* use openai endpoint

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-12 20:35:03 +00:00
Ian
9a216b1deb
Openai assistant function usage notebook (#639)
* add oai assistant function call

* polish

* add titles

* polish

* Update notebook/agentchat_oai_assistant_function_call.ipynb

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>
2023-11-12 17:59:46 +00:00
gagb
032c05e954
Add basic notebook for gptassistant (#636)
* Refactor GPTAssistantAgent constructor to handle
instructions and overwrite_instructions flag

- Ensure that `system_message` is always consistent with `instructions`
- Ensure provided instructions are always used
- Add option to permanently modify the instructions of the assistant

* Improve default behavior

* Add a test; add method to delete assistant

* Add a new test for overwriting instructions

* Add test case for when no instructions are given for existing assistant

* Add pytest markers to test_gpt_assistant.py

* add test in workflow

* update

* fix test_client_stream

* comment out test_hierarchy_

* Add basic gptassistant notebook

- also improve logging in gpt assistant

* Update notebook/agentchat_oai_assistant_twoagents_basic.ipynb

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: kevin666aa <yrwu000627@gmail.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-11-12 17:07:10 +00:00
Qingyun Wu
c22a322aff
uncomment test (#640) 2023-11-12 13:37:48 +00:00
gagb
df2cd36dee
Refactor GPTAssistantAgent (#632)
* Refactor GPTAssistantAgent constructor to handle
instructions and overwrite_instructions flag

- Ensure that `system_message` is always consistent with `instructions`
- Ensure provided instructions are always used
- Add option to permanently modify the instructions of the assistant

* Improve default behavior

* Add a test; add method to delete assistant

* Add a new test for overwriting instructions

* Add test case for when no instructions are given for existing assistant

* Add pytest markers to test_gpt_assistant.py

* add test in workflow

* update

* fix test_client_stream

* comment out test_hierarchy_

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: kevin666aa <yrwu000627@gmail.com>
2023-11-12 06:03:51 +00:00
Li Jiang
ff414892c4
Fix docstring of get_or_create (#583)
* Fix docstring of get_or_create

* Improve docstring
2023-11-12 03:10:58 +00:00