3039 Commits

Author SHA1 Message Date
Jack Gerrits
a5d267e986 Update link to 0.2 docs 2024-09-30 20:02:19 -04:00
Jack Gerrits
af2b5faeef Update package versions 2024-09-30 19:59:35 -04:00
Leonardo Pinheiro
6cfa29b018 Add langchain tool adapter in autogen-ext (#570)
* add langhcain tool adapter

* remove langchain package

* fix type errors

* test type fixes

* fix imports

* install extras in CI

* improve typing and use to_thread

* pin min langchain version

* install all extras in ci test

* update to langchain 0.3.1

* install extras in CI

* ignore pyright errors

* add missing uv sync extra reqs

---------

Co-authored-by: Leonardo Pinheiro <lpinheiro@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-09-30 19:36:20 -04:00
Xiaoyun Zhang
18d52f606a
Merge dotnet conflict (#3) 2024-09-30 19:32:48 -04:00
Jack Gerrits
5cb5bda522 Publish both 0.2 and dev websites 2024-09-30 19:30:34 -04:00
Henry Tu
3fdf8dea22
Add Cerebras Integration (#3585)
* Cerebras Integration

* Address feedback

* Fix typo

* Run formatter
2024-09-30 21:14:55 +00:00
Jack Gerrits
4ea1f7a8b3 Add redirects for old website URLs 2024-09-30 16:41:50 -04:00
Jack Gerrits
1dc91bddd2 Fix lfs 2024-09-30 15:50:28 -04:00
Rob
b8d749daac
async user hook support added (#3583)
* feat: adds async hooks, across all types, and a hookable check

* fix: adds test to other hook types
2024-09-30 19:15:19 +00:00
Jack Gerrits
2f8241d490
Fix line endings of test/browser_utils/test_files/test_serp.html (#3586) 2024-09-30 19:14:48 +00:00
Jack Gerrits
c25df0d8e9 update docs to include dev path 2024-09-30 13:09:50 -04:00
Jack Gerrits
d9ca172f5c set baseurl to dev for 0.4 2024-09-30 11:41:22 -04:00
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