2477 Commits

Author SHA1 Message Date
Jack Gerrits
d11b421ccd attribute theme 2024-09-30 11:41:05 -04:00
Jack Gerrits
47cc6679fc remove git attributes file 2024-09-30 11:04:36 -04:00
Jack Gerrits
b9ac9e45d1 show diff in failed gen proto 2024-09-30 11:02:49 -04:00
Eric Zhu
b2db45d673 Tool use in agentchat (#664)
* Tool use in agentchat

* Update link

* doc string
2024-09-30 10:58:02 -04:00
Jack Gerrits
99d1ad3765 update lockfile 2024-09-30 10:54:41 -04:00
Jack Gerrits
2596648fc9 move studio to a package 2024-09-30 10:20:38 -04:00
Jack Gerrits
3a62798af8 Merge work in progress autogen 0.4 to main 2024-09-30 10:15:34 -04:00
Jack Gerrits
00f6e51907 fix line endings of test/browser_utils/test_files/test_serp.html 2024-09-30 09:59:44 -04:00
Eric Zhu
0fa680577e
Sequential processing for group chat participant using SequentialRoutedAgent (#663) 2024-09-28 17:40:33 +00:00
Eric Zhu
18efc2314a
Use agentchat message types rather than core's model client message types (#662)
* Use agentchat message types rather than core's model client message types

* Merge remote-tracking branch 'origin/main' into ekzhu-tool-use-assistant
2024-09-28 08:40:13 -07:00
Jack Gerrits
43c85d68e0
Update references (#657)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-09-28 04:01:08 +00:00
Eric Zhu
da246ef71b
Move tool use with intervention to cookbook; remove duplicated examples (#658) 2024-09-28 03:57:44 +00:00
Eric Zhu
4250c0619a
Skip websurfer test (#660) 2024-09-28 03:54:05 +00:00
Sahil
dbb139d795
Added instructions to launch frontend server when running from source (#3517)
When running the AutoGen Studio from source, one needs to separately launch the frontend server. Updated the docs to include these instructions.

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-09-27 23:27:26 +00:00
Jack Gerrits
766a4a13c0
Remove announcement bar (#3579)
Testing that website deployment via action works
2024-09-27 20:37:46 +00:00
Jack Gerrits
da0906b065
Update token permissions for site deployment (#3580) 2024-09-27 19:42:32 +00:00
Jack Gerrits
38cce476d7
Deploy website using action instead of branch (#3578) 2024-09-27 19:24:23 +00:00
peterychang
d7a5835123
Add Azure code executor cookbook (#615)
* Add Azure code executor cookbook

* Notebook instead of markdown file

* PR comments

* fix method links

* fix a broken link

* fix undefined variable

* fix code errors

* missing parameter

* revert accidental change, ignore async with errors

* formatting
2024-09-27 15:23:20 -04:00
afourney
d7190cbe9e
Removes easyocr from mdconvert (#653)
* Removes easyocr from mdconvert

* Updated uv lock

* Remove unused variable.
2024-09-26 18:22:44 -04:00
afourney
d2b750de5d
Removes EasyOCR dependency from mdconvert. (#3573)
* Removes EasyOCR dependency from mdconvert.

* Update mdconvert.py

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-26 21:36:03 +00:00
peterychang
e0e99a1048
Standardize Agent and Topic ID strings + documentation (#638)
* Standardize Agent and Topic ID strings + documentation

* Add specs

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-26 19:45:38 +00:00
Jack Gerrits
95078d1237
Update conf.py (#650) 2024-09-26 16:38:36 +00:00
Eric Zhu
00289912da
Associate agent container and message types to group chat behavior protocol (#651)
* Agent container and message types is part of a group chat team behavior protocol.

* lint
2024-09-26 09:04:42 -07:00
Mohammad Mazraeh
90352f142d
Remove .DS_Store from main folder (#648) 2024-09-26 10:03:48 -04:00
Anush
f958f172fc
refactor: Qdrant use Query API (#3428)
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-09-26 06:40:09 +00:00
paubins2
94064da472
Embedding function should always return a list of a list of vectors (#3570)
Co-authored-by: patrickaubin-abbott <78225817+patrickaubin-abbott@users.noreply.github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-09-26 06:23:53 +00:00
Eric Zhu
7ba99186fb
Initial implementation of agentchat (#623)
* WIP implementation for agentchat

* WIP

* WIP

* wip

* WIP

* WIP

* WIP

* WIP

* fix types

* format

* fix build

* Fix build

* use a simpler implementation of thread -- list

* Select speaker to return speaker topic type

* add parent topic type to agent container

* Address comments

* Add check to make sure agent id is constant in a team run.

* Fix build
2024-09-25 23:15:17 +00:00
afourney
0d5163b78a
WebSurfer Updated (Selenium, Playwright, and support for many filetypes) (#1929)
* Feat/headless browser (retargeted) (#1832)

* Add headless browser to the WebSurferAgent, closes #1481

* replace soup.get_text() with markdownify.MarkdownConverter().convert_soup(soup)

* import HeadlessChromeBrowser

* implicitly wait for 10s

* inicrease max. wait time to 99s

* fix: trim trailing whitespace

* test: fix headless tests

* better bing query search

* docs: add example 3 for headless option

---------

Co-authored-by: Vijay Ramesh <vijay@regrello.com>

* Handle missing Selenium package.

* Added browser_chat.py example to simplify testing.

* Based browser on mdconvert. (#1847)

* Based browser on mdconvert.

* Updated web_surfer.

* Renamed HeadlessChromeBrowser to SeleniumChromeBrowser

* Added an initial POC with Playwright.

* Separated Bing search into it's own utility module.

* Simple browser now uses Bing tools.

* Updated Playwright browser to inherit from SimpleTextBrowser

* Got Selenium working too.

* Renamed classes and files for consistency.

* Added more instructions.

* Initial work to support other search providers.

* Added some basic behavior when the BING_API_KEY is missing.

* Cleaned up some search results.

* Moved to using the request.Sessions object. Moved Bing SERP paring to mdconvert to be more broadly useful.

* Added backward compatibility to WebSurferAgent

* Selenium and Playwright now grab the whole DOM, not jus the body, allowing the converters access to metadata.

* Fixed printing of page titles in Playwright.

* Moved installation of WebSurfer dependencies to contrib-tests.yml

* Fixing pre-commit issues.

* Reverting conversable_agent, which should not have been changed in prior commit.

* Added RequestMarkdownBrowser tests.

* Fixed a bug with Bing search, and added search test cases.

* Added tests for Bing search.

* Added tests for md_convert

* Added test files.

* Added missing pptx.

* Added more tests for WebSurfer coverage.

* Fixed guard on requests_markdown_browser test.

* Updated test coverage for mdconvert.

* Fix brwser_utils tests.

* Removed image test from browser, since exiftool isn't installed on test machine.

* Removed image test from browser, since exiftool isn't installed on test machine.

* Disable Selenium GPU and sandbox to ensure it runs headless in Docker.

* Added option for Bing API results to be interleaved (as Bing specifies), or presented in a categorized list (Web, News, Videos), etc

* Print more details when requests exceptions are thrown.

* Added additional documentation to markdown_search

* Added documentation to the selenium_markdown_browser.

* Added documentation to playwright_markdown_browser.py

* Added documentation to requests_markdown_browser

* Added documentation to mdconvert.py

* Updated agentchat_surfer notebook.

* Update .github/workflows/contrib-tests.yml

Co-authored-by: Davor Runje <davor@airt.ai>

* Merge main. Resolve conflicts.

* Resolve pre-commit checks.

* Removed offending LFS file.

* Re-added offending LFS file.

* Fixed browser_utils tests.

* Fixed style errors.

---------

Co-authored-by: Asapanna Rakesh <45640029+INF800@users.noreply.github.com>
Co-authored-by: Vijay Ramesh <vijay@regrello.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Davor Runje <davor@airt.ai>
2024-09-25 22:17:42 +00:00
Lokesh Goel
2e1f788293
Add Couchbase VectorDB Support (#3525)
* add couchbase vector store

* add unit test

* cleanup

* add couchbase to website

* fix code formatting

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 17:15:35 +00:00
Jack Gerrits
5eb1b0b788
Add init (#3568)
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-09-25 17:07:48 +00:00
Jack Gerrits
857830c50d
Remove api key validation (#3569) 2024-09-25 16:48:06 +00:00
rahulAira
3c10dc56c5
Add kwargs to pass to docker container that runs the Jupyter Server (#3028)
* Add kwargs to pass to docker container that runs the Jupyter Server

* Update docker_jupyter_server.py

* Update docker_jupyter_server.py

* Update docker_jupyter_server.py

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 16:00:01 +00:00
Wael Karkoub
feef9d4d37
Throttle API Calls (#2283)
* wip

* remove async

* minor fix

* robust timing test

* modifies file names

* modifies config list

* updates faq

* updates llm config doc

* mock openai calls

* make windows tests happy

* clean up

* undo change in doc

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:46:17 +00:00
dependabot[bot]
4dfe2fb741
Bump micromatch from 4.0.5 to 4.0.8 in /website (#3417)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
2024-09-25 15:33:19 +00:00
Tim Bula
3d6a7707af
feat: add cookies from http session to ws (#3312)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:21:08 +00:00
Drew Gillson
ddc2eaae88
Fix AttributeError: 'NoneType' object has no attribute 'name' (#3127)
There is a bug related to the interplay between the society of mind agent and the FileLogger, probably somewhere around https://github.com/microsoft/autogen/blob/main/autogen/agentchat/contrib/society_of_mind_agent.py#L181, which causes an empty name property to be sent. The FileLogger should gracefully handle this circumstance and not return an error to the function caller.

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:17:59 +00:00
Beibin Li
ece69249e4
Catch token count issue while streaming with customized models (#3241)
* Catch token count issue while streaming with customized models

If llama, llava, phi, or some other models are used for streaming (with stream=True), the current design would crash after fetching the response.

A warning is enough in this case, just like the non-streaming use cases.

* Only catch not implemented error

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:14:20 +00:00
Juan Artero
c1289b4da7
fix execute a_generate_reply with function_call: None (#3250)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:13:45 +00:00
Evan David
0847b459d1
Fix role mapping in GPTAssistantAgent for OpenAI API compatibility (#3555)
Co-authored-by: Evan David <evandavid@Evans-MacBook-Air-2.local>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:11:25 +00:00
Anirudh31415926535
7cfcf5501f
fix: update cohere tool calling multi agents (#3488)
* update cohere tool calling multi agents

* Add agent name prefix to chatbot message

---------

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:11:11 +00:00
Burkhard Reffeling
29fa4ce1fd
Fix for async group chat resume - full chat history for each agent (#3558)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:10:38 +00:00
Evan Hadfield
3c90bee92f
Update LLM Caching link in Optional-Dependencies.md (#2885)
* Update LLM Caching link in Optional-Dependencies.md

Fix link to direct to the current location of the LLM Caching doc

* Update Optional-Dependencies.md

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 15:08:54 +00:00
dependabot[bot]
a3027d3e6e
Bump webpack from 5.89.0 to 5.94.0 in /website (#3438)
Bumps [webpack](https://github.com/webpack/webpack) from 5.89.0 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.89.0...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 14:47:37 +00:00
Eric Zhu
74a55c3907
Add multi-agent-debate pattern in documentation; remove from sample (#637) 2024-09-25 14:45:49 +00:00
Suchit G
0b19aa74d4
Fix syntax error in user-defined-functions docs (unecessarily capitalized) (#3336)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-25 14:17:16 +00:00
Eric Zhu
a0ed11f8da
Add advanced mixture of agents guide; replacing the sample script (#634)
* Add moa cookbook for multi-layer mixture-of-agents

* Update moa
2024-09-25 12:19:09 +00:00
Eric Zhu
6c14c7859d
Remove samples that have duplicates in documentation (#631) 2024-09-25 11:26:26 +00:00
Cell
a42ad4a739
AB#3538: issue: 'https://docs.trychroma.com/embeddings' hyperlink is not working. Fix: update with using 'https://docs.trychroma.com/guides/embeddings' (#3539)
Co-authored-by: CellCS <cellcs@m1>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-09-25 11:00:33 +00:00
Leonardo Pinheiro
09501a0134
Add Broadcasting cookbook (#600)
* add cookbook initial draft

* add all boradcasting scenarios

* add to src tree

* linting

* address feedback

* rename pattern to scenario

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
2024-09-24 20:36:15 -07:00
Enhao Zhang
afdfb4ea58
TeamOne cancellation token support and making logger a member variable (#622)
* Added cancellation token support for team_one; made logger a member variable of each agent.

formatting

fix error

fix error

formatting

* No need to create a new cancellation token
2024-09-24 16:54:22 -07:00