156 Commits

Author SHA1 Message Date
Eric Zhu
a9483a492c
fix use case in website (#1108) 2023-12-30 20:48:08 +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
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
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
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>
2023-12-10 03:28:13 +00:00
Qingyun Wu
c3cebd7efe
Minor grammar and wording issues (#854)
* wording

* grammar and wording

* readability suggested by shruti222patel

* period
2023-12-04 02:57:06 +00:00
Yiran Wu
7a4ba1a732
Add cost summary to client.py (#812)
* init commit

* add doc, notebook and test

* fix test

* update

* update

* update

* update
2023-12-03 21:06:46 +00:00
Qingyun Wu
77e1d28c1b
improve ecosystem page (#823)
* restucture

* update examples references

* fix citation
2023-12-03 01:09:55 +00:00
Yiran Wu
f812a238b1
add cost calculation to client (#769)
* add cost calculation

* Update autogen/oai/client.py

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* Update autogen/oai/client.py

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>

* update

* add doc

---------

Co-authored-by: Joshua Kim <joshkyh@users.noreply.github.com>
2023-11-28 19:47:53 +00:00
Qingyun Wu
b30ead2945
Update application figure (#352)
* update app fig

* space

* update fig

* format

* update fig
2023-11-27 21:07:53 +00:00
Olaoluwa Ademola Salami
37ec15497d
Add links to newly added notebooks in the website #756 (#772)
* wip

* remove spaces

* :

* pr updated

* change to wip

* Created a new subsection
2023-11-27 04:08:36 +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
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
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>
2023-11-13 21:05:30 +00:00
Joshua Kim
98115e801a
Added link to the new notebook (#594) 2023-11-09 14:38:38 +00:00
Chi Wang
dfcbea9777
seed -> cache_seed (#600) 2023-11-08 23:39:02 +00:00
AkariLan
8593807359
fix wrong 'Langchain Provided Tools as Functions' doc ref (#495)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-05 18:29:33 +00:00
Chi Wang
c4f8b1c761
Dev/v0.2 (#393)
* api_base -> base_url (#383)

* InvalidRequestError -> BadRequestError (#389)

* remove api_key_path; close #388

* close #402 (#403)

* openai client (#419)

* openai client

* client test

* _client -> client

* _client -> client

* extra kwargs

* Completion -> client (#426)

* Completion -> client

* Completion -> client

* Completion -> client

* Completion -> client

* support aoai

* fix test error

* remove commented code

* support aoai

* annotations

* import

* reduce test

* skip test

* skip test

* skip test

* debug test

* rename test

* update workflow

* update workflow

* env

* py version

* doc improvement

* docstr update

* openai<1

* add tiktoken to dependency

* filter_func

* async test

* dependency

* migration guide (#477)

* migration guide

* change in kwargs

* simplify header

* update optigude description

* deal with azure gpt-3.5

* add back test_eval_math_responses

* timeout

* Add back tests for RetrieveChat (#480)

* Add back tests for RetrieveChat

* Fix format

* Update dependencies order

* Fix path

* Fix path

* Fix path

* Fix tests

* Add not run openai on MacOS or Win

* Update skip openai tests

* Remove unnecessary dependencies, improve format

* Add py3.8 for testing qdrant

* Fix multiline error of windows

* Add openai tests

* Add dependency mathchat, remove unused envs

* retrieve chat is tested

* bump version to 0.2.0b1

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2023-11-04 04:01:49 +00:00
Sheetali Maity
6438625063
Add link to OptiGuide #371 (#376)
* OptiGuide Link

* Update AutoGen-AgentChat.md

* fixes
2023-10-23 16:16:53 +00:00
Chi Wang
6e74e2d51a
headsup about dependency change (#378)
* headsup about dependency change

* more change
2023-10-23 15:34:32 +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
a456b512d5
Fix format and links in documentations (#310)
* Fix format and links

* Update title

* Sync title

* Add examples to installation
2023-10-20 02:23:29 +00:00
Victor Dibia
af879bdcda
Organize notebooks into logical groups #273 (#288)
* Organize notebooks into logical groups #273

* update multiagent group to mention >3 agents
2023-10-19 15:54:54 +00:00
Yiran Wu
b61aeb6cce
Improving logging in oai.completion to show token_count (#179)
* update

* update doc

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
2023-10-12 14:31:52 +00:00
Chi Wang
904b293aa4
make retry_time configurable, add doc (#53)
* make retry_time configurable, add doc

* in seconds

* retry_wait_time

* bump version to 0.1.4

* remove .json

* rename

* time
2023-09-30 16:21:07 +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
Danizord
d3d5dca159
Remove duplicated sentence (#35) 2023-09-28 14:54:15 +00:00
Chi Wang
ddf10044a1 cleanup 2023-09-27 16:29:12 +00:00
Chi Wang
cf4d46f31d cleanup 2023-09-19 20:34:01 +00:00
Chi Wang
804472519d cleanup 2023-09-19 13:29:52 +00:00
Li Jiang
4c4f622d73 Add links to RetrieveChat notebook 2023-09-19 20:58:08 +08: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
bc4473fe8a cleanup 2023-09-16 10:57:57 +00:00
Chi Wang
4685f27d02 Merge remote-tracking branch 'upstream/main' into code 2023-09-16 10:13:38 +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
Qingyun Wu
95db977718 update fig 2023-09-11 10:35:46 -04:00
Qingyun Wu
9233bf077f reply func renaming 2023-09-11 10:30:24 -04:00
Qingyun Wu
409fec0dfb agent renaming 2023-09-11 09:50:07 -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
90e086a5a6 update group chat links 2023-09-10 16:09:14 -04:00
Qingyun Wu
2837e22f3a fix typo 2023-09-08 09:42:55 -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
Qingyun Wu
a27b9bc9e1 add group chat link 2023-09-05 20:34:59 -04:00
Qingyun Wu
eebe5af424 typo 2023-09-05 18:37:47 -04:00
Qingyun Wu
3c6e191044
fix typo (#1210) 2023-09-05 19:02:48 +00:00
Qingyun Wu
ec9e8c403d update links 2023-09-03 23:51:34 -04:00
Qingyun Wu
2a69be7fe3 update conversation pattern 2023-09-02 21:58:13 -04:00
Qingyun Wu
65c14e2332 add figures 2023-09-02 20:37:51 -04:00
Qingyun Wu
45b3f1d80d change back name to flaml 2023-09-02 14:46:20 -04:00