Commit Graph

3198 Commits

Author SHA1 Message Date
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
Yiran Wu
805d8452c4 Fix test error of compressible agent (#631)
* fix bug in test

* update workflow

* update

* deepcopy to copy
v0.2.0b4
2023-11-11 19:57:14 +00:00
wonderful
6bb7acc34d Handled possible unclear IndexError in ConversableAgent.last_message method (#622)
* Handled possible IndexError in ConversableAgent.last_message method with more clear error message and added test in test_conversable_agent.py.

* Fix code formatting issues.

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-11 18:55:57 +00:00
Qingyun Wu
fda7a39dd9 improve readme (#630)
* improve readme

* Update README.md

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

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-11 15:17:04 +00:00
Alvaro Mateos
849feda98e Enable streaming support for openai v1 (#597)
* Enable streaming support for openai v1

* Added tests for openai client streaming

* Fix test_completion_stream
2023-11-11 14:30:40 +00:00
Malik Muhammad Moaz
8d225dbcad added twitter(X) banner + link to readme (#615)
* added twitter(X) banner + link to readme

* Update README.md

Fix typo in the label

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
2023-11-11 13:56:45 +00:00
Ian
f77ca897f2 Introducing Experimental GPT Assistant Agent in AutoGen (#616)
* add gpt assistant agent

* complete code

* Inherit class ConversableAgent

* format code

* add code comments

* add test case

* format code

* fix test

* format code

* Improve GPTAssistant

* Use OpenAIWrapper to create client
* Implement clear_history()
* Reply message formatting improvements
* Handle the case when content contains image files

* README update

* Fix doc string of methods

* add multiple conversations support

* Add GPT Assistant Agent into README

* fix test

---------

Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Beibin Li <beibin79@gmail.com>
2023-11-11 13:54:18 +00:00
afourney
24807be4c8 Added warnings for some GroupChat misconfigurations and selection errors (#603)
* Added warnings for some GroupChat misconfigurations and selection errors

* Fixed formatting
2023-11-11 00:54:25 +00:00
Andreas Volkmann
b1e69bf2f2 Update oai_completion.ipynb (#623)
Missing import
2023-11-11 00:50:59 +00:00
Qingyun Wu
d5cbc2b3ba add AutoGen paper info at the beginning of readme (#621)
* add paper info on top of readme

* update info

* add paper info

* revise date
2023-11-10 17:45:59 +00:00
Kosta Petan
31eaa4c3ce mermory refactor 2023-11-10 15:30:24 +00:00
Kosta Petan
957d347838 change network timeout 2023-11-10 14:22:09 +00:00
Yiran Wu
19ea8b8b7a Add CompressibleAgent (#443)
* 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 compressibleagent

* revise doc, add tests, add example

* fix link

* fix link

* fix link

* remove test

* update doc

* update doc

* add tiktoken to dependency

* filter_func

* async test

* dependency

* revision

* migration guide (#477)

* migration guide

* change in kwargs

* simplify header

* update optigude description

* update for dev

* revision

* revision

* allow not compressing last n msgs

* update

* correct merge

* update test workflow

* check test

* update for test

* update

* update notebook

* update

* fix bug

* update

* update

* update

* check to "pull_request_target" in contrib-openai

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-10 04:11:28 +00:00
Jieyu Zhang
0b926f4f2d Add EcoAssistant to the research page (#612)
* Update Research.md

* Update Research.md

* Update Research.md
2023-11-09 21:08:40 +00:00
Kosta Petan
45d9282ab2 add error handling/logging 2023-11-09 16:03:38 +00:00
Chi Wang
5dfbbbdf73 news update (#609)
* news update

* separate lines
2023-11-09 15:40:15 +00:00
1073710317
b2b6d7c614 update return type of WolframAlphaAPIWrapper.run() (#523)
* update return type of WolframAlphaAPIWrapper.run

* replace tuple by typing.Tuple

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
2023-11-09 15:19:36 +00:00
Kosta Petan
d18296f800 update compiles 2023-11-09 15:05:58 +00:00
Joshua Kim
98115e801a Added link to the new notebook (#594) 2023-11-09 14:38:38 +00:00
Kosta Petan
b2a5c9a447 breaking SK upgrade 2023-11-09 11:23:58 +00:00
Kosta Petan
77daf0c203 breaking change WIP 2023-11-09 09:46:27 +00:00
Chi Wang
dfcbea9777 seed -> cache_seed (#600) 2023-11-08 23:39:02 +00:00
Joshua Kim
2a96e4d9d2 Notebook/hierarchy flow (#482)
* Notebook showing how to use select speaker to control conversation flow.

* pytest associated with notebook.

* Added llm_config to assistant and user proxy agent, and clarified why we set use_cache to false, as requested in the review.

* Added a @pytest.mark.skipif decorator like other tests to run it only in one py version, 3.10

* Fixed config warning.

* Removd llm_config to UserProxyAgent

* Fixed minor typos.

* Reran outputs

* Remopved llm_config from user_proxy_agent

* Colab Badge link updated.

* pre-commit formatting changes.

* Fixed base_url

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.0b3
2023-11-07 22:06:45 +00:00
Chi Wang
65ec0b19de update version of openai dependency (#588) 2023-11-07 21:29:04 +00:00
Beibin Li
b41b366549 Large Multimodal Models in AgentChat (#554)
* LMM Code added

* LLaVA notebook update

* Test cases and Notebook modified for OpenAI v1

* Move LMM into contrib
To resolve test issues and deploy issues
In the future, we can install pillow by default, and then move back
LMM agents into agentchat

* LMM test setup update

* try...except... clause for LMM tests

* disable patch for llava agent test
To resolve dependencies issue for build

* Add LMM Blog

* Change docstring for LMM agents

* Docstring update patch

* llava: insert reply at position 1 now
So, it can still handle human_input_mode
and max_consecutive_reply

* Resolve comments
Fixing: typos, blogs, yml, and add OpenAIWrapper

* Signature typo fix for LMM agent: system_message

* Update LMM "content" from latest OpenAI release
Reference  https://platform.openai.com/docs/guides/vision

* update LMM test according to latest OpenAI release

* Fully support GPT-4V now
1. Add a notebook for GPT-4V. LLava notebook also updated.
2. img_utils updated
3. GPT-4V formatter now return base64 image with mime type
4. Infer mime type directly from b64 image content (while loading
   without suffix)
5. Test cases modified according to all the related changes.

* GPT-4V link updated in blog

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
v0.2.0b2
2023-11-06 21:33:51 +00:00
Chi Wang
306ac4d7f7 copy dicts before modifying (#551)
* copy dicts before modifying

* update notebooks

* update notebooks

* close #567
2023-11-06 21:14:05 +00:00
Kosta Petan
eb490ed832 first draft workflow for understandings 2023-11-05 20:26:04 +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
Vatsalya Vyas
bdfbca887d Update README.md (#507)
Fixed small typos

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-05 18:09:39 +00:00
gfggithubleet
f51301f9a1 Update TRANSPARENCY_FAQS.md (#492)
fixed grammatical error
FAQ--->FAQs

Co-authored-by: gagb <gagb@users.noreply.github.com>
2023-11-05 18:08:35 +00:00
Li Jiang
f052977e24 Add support to unstructrued (#501)
* Add support to unstructrued

* Fix tests

* Add test and documents

* Fix tests

* Fix tests

* Test unstructured on linux and mac
2023-11-05 13:30:28 +00:00
hung_ng__
0dd0fc5aa2 Fix typo import autogen (#549) 2023-11-04 17:12:41 +00:00
afourney
1c4a5e6a1a Added a simple Testbed tool for repeatedly running templated Autogen scenarios with tightly-controlled initial conditions. (#455)
* Initial commit of the autogen testbed environment.

* Fixed some typos in the Testbed README.md

* Added some stricter termination logic to the two_agent scenario, and swiched the logo task from finding Autogen's logo, to finding Microsoft's (it's easier)

* Added documentation to testbed code in preparation for PR

* Added a variation of HumanEval to the Testbed. It is also a reasonable example of how to integrate other benchmarks.

* Removed ChatCompletion.start_logging and related features. Added an explicit TERMINATE output to HumanEval to save 1 turn in each conversation.

* Added metrics utils script for HumanEval

* Updated the requirements in the README.

* Added documentation for HumanEval csv schemas

* Standardized on how the OAI_CONFIG_LIST is handled.

* Removed dot-slash from 'includes' path for cross-platform compatibility

* Missed a file.

* Updated readme to include known-working versions.
2023-11-04 10:38:43 +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>
v0.2.0b1
2023-11-04 04:01:49 +00:00
Kosta Petan
ddd5fa0ad3 Ingest repo (C# only) (#7)
* ingest WIP function

* ingest WIP

* analyze WIP

* WIP

* ingester WIP

* ingester WIP

* ingester WIP

* fix github download

* working ingester
2023-11-03 21:46:25 +01:00
Aditya
5089525ecc Update README.md (#506)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-02 19:29:41 +00:00
Jason Holtkamp
55d27cccc9 Added example .txt file for agentchat_langchain sample notebook (#373)
* Added example .txt file for agentchat_langchain sample notebook

* Update radius.txt

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-11-02 05:34:05 +00:00
bonadio
957ec00edd Adding async support to get_human_input (#466)
* Adding async support to get_human_input

* Adjust code for Code formatting testing fail

* Adjust the test_async_get_human_input.py to run async on test

* Adjust the test_async_get_human_input.py for pre-commit-check error

* Adjust the test_async_get_human_input.py for pre-commit-check error v2

* Adjust remove unnecessary register_reply

* Adjust test to use asyncio call

* Adjust go back to not use asyncio
2023-11-01 04:30:22 +00:00
Aayush Chhabra
503c2430f9 Fix/async function and tool execution (#87)
* async run group chat

* conversible agent allow async functions to generate reply

* test for async execution

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-31 16:04:32 +00:00
Ikko Eltociear Ashimine
b432c1b108 Fix typo in README.md (#481)
Contributers -> Contributors
2023-10-30 16:10:22 +00:00
Marc Green
46e8948d81 Update FAQ with workaround for Issue #251 (#405)
* Update FAQ with workaround for Issue #251

* Update website/docs/FAQ.md

* Update website/docs/FAQ.md

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-30 01:49:00 +00:00
gagb
5694486272 Update Installation.md (#456)
* Update Installation.md

Replace autogen->pyautogen in env setup to avoid confusion

Related issue: #211

* Update Installation.md

Add deactivation instructions

* Update website/docs/Installation.md

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

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2023-10-28 05:51:28 +00:00