1935 Commits

Author SHA1 Message Date
Jack Gerrits
d4a09939d0
Create CI to tag issues with needs triage (#3605) 2024-10-02 21:28:57 +00:00
Jack Gerrits
6ebf49a9b8
Update PR link in blog post (#3602)
* Update PR link in blog post

* Update index.mdx
2024-10-02 18:41:19 +00:00
Jack Gerrits
9b79094891
Add blog post announcing the new architecture preview (#3599) 2024-10-02 18:04:33 +00:00
Henry Tu
249a57bfa2
Fix typos in Cerebras doc (#3590)
* Fix typos in Cerebras doc

Fix typo in Cerebras documentation

* FIx formatting
2024-10-02 15:10:55 +00:00
Jack Gerrits
7431b66cf0
Use trusted publisher for pypi release (#3596) 2024-10-02 00:28:35 +00:00
Jack Gerrits
289e0f4751
Update version to 0.2.36, update package name (#3592)
* Update version to 0.2.36, update package name

* update publish

* Formatting

* Update README.md

* update email
v0.2.36
2024-10-02 00:05:11 +00:00
Eric Zhu
32166b5e3e
Use native logger formatter (#3594) 2024-10-01 23:55:31 +00:00
Mark Sze
27c882841f
Updated to v0.3.3 with changes to options handling (#3593) 2024-10-01 23:55:17 +00:00
Mark Sze
3a6b88ef8a
Ollama Client (with tool calling) (#3056)
* Ollama client! With function calling. Initial commit, client, no docs or tests yet.

* Tidy comments

* Cater for missing prompt token count

* Removed use of eval, added json parsing support library

* Fix to the use of the JSON fix library, handling of Mixtral escape sequence

* Fixed 'name' in JSON bug, catered for single function call JSON without []

* removing role='tool' from inner tool result to reduce token usage.

* Added Ollama documentation and updated library versions

* Added Native Ollama tool calling (v0.3.0 req.) as well as hide/show tools support

* Added native tool calling and hide_tools parameter to documentation

* Update to Ollama 0.3.1, added tests

* Tweak to manual function calling prompt to improve number handling.

* Fix formatting

Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* Fix formatting

* Better error message

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-10-01 22:06:52 +00:00
Eric Zhu
db287183f2
Disable Azure tests and fix open ai tests (#3587)
* Disable Azure tests

* fix calculator notebook

* use gpt-4o-mini for tests

* use gpt-4o

* use gpt-4o

* fix formatting

* Fix models used in contrib tests

* Fix retrieval test

* WIP

* Skip

* Fix format

* Fix formatting
2024-10-01 21:53:25 +00:00
Jack Gerrits
43b0d59a34
Remove API key warning (#3589) 2024-10-01 18:50:51 +00:00
Arunabh
d31a2e4392
add composio notebook (#3567)
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-10-01 05:06:58 +00:00
Henry Tu
3fdf8dea22
Add Cerebras Integration (#3585)
* Cerebras Integration

* Address feedback

* Fix typo

* Run formatter
2024-09-30 21:14:55 +00: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
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
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
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
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
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
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
David
2828289f95
type intiate_chat -> initiate_chat (#3533)
AttributeError: 'UserProxyAgent' object has no attribute 'intiate_chat'. Did you mean: 'initiate_chat'?

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-09-24 08:41:31 +00:00
dependabot[bot]
0f3621defd
Bump express from 4.19.2 to 4.21.0 in /website (#3552)
Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: express
  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: Li Jiang <bnujli@gmail.com>
2024-09-24 06:55:36 +00:00
Li Jiang
6aaa238b4e
Fix issue caused by chromadb error type change (#3557)
* Fix chromadb error type

* Update docs

* Improve robustness

* Fix tests

* Fix docs

* Fix docs

* Fix docs

* Fix docs
2024-09-23 19:19:23 +00:00
David Luong
6c9d9d8cc3
[.NET] Release v0.2.1 (#3529)
* Write release note for 0.2.1 & upgrade version prefix to 0.2.1

* update tom.yml

* add example to release note

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>

---------

Co-authored-by: luongdavid <luongdavid@microsoft.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-09-13 21:21:19 +00:00
Xiaoyun Zhang
e76c39e52d
[.Net][AutoGen.OpenAI] Allow nullable system message, temperature and max token to support o1-preview model (#3524)
* add connect to o1 example

* Update Connect_To_OpenAI_o1_preview.cs
2024-09-13 16:59:58 +00:00
gagb
63d3297ffc
Update README.md (#3499) 2024-09-09 18:17:57 +00:00
gagb
afece7558f
Update pyproject.toml for AutoGen Studio (#3495)
* Update pyproject.toml

* Update pyproject.toml
2024-09-09 17:00:29 +00:00
siddharth Sambharia
5f87b2802f
Portkey Integration with Autogen (#3395)
* Portkey Integration with Autogen

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

Co-authored-by: gagb <gagb@users.noreply.github.com>

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update website/docs/ecosystem/portkey.md

* Update portkey.md with changes

* Update website/docs/ecosystem/portkey.md

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>

* Remove trailing white spaces

* Update portkey.md with mark's note

* remove trailing white spaces line 15 and empty line at end

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-09-09 05:36:48 +00:00
New-World-2019
2ff29793fe
Fix the bug of creating a new session on the AutoGen Studio playground page (#3407)
Co-authored-by: linuxYn <9170444+linux-ape@user.noreply.gitee.com>
Co-authored-by: Victor Dibia <victordibia@microsoft.com>
2024-09-08 23:41:57 +00:00
Victor Dibia
084a54daba
Support for Human Input Mode in AutoGen Studio (#3484)
* bump version, add claude default model

* Move WebSocketConnectionManager into its own file.

* Update the AutoGenStudio to use Async code throughout the call stack

Update *WorkflowManager* classes:
- Add async `a_send_message_function` parameter to mirror `send_message_function` param.
- Add async `a_process_message` coroutine to mirror the synchronous `process_message` function.
- Add async `a_run` coroutine to mirror the `run` function
- Add async `_a_run_workflow` coroutine to mirror the synchronous `_run_workflow` function.

Update *ExtendedConversableAgent* and *ExtendedGroupChatManager* classes:
- Override the async `a_receive` coroutines

Update *AutoGenChatManager*:
- Add async `a_send` and `a_chat` coroutines to mirror their sync counterparts.
- Accept the `WebSocketManager` instance as a parameter, so it can do Async comms directly.

Update *app.py*
- Provide the `WebSocketManager` instance to the *AutoGenChatManager* constructor
- Await the manager's `a_chat` coroutine, rather than calling the synchronous `chat` function.

* Add Human Input Support

Updates to *ExtendedConversableAgent* and *ExtendedGroupChatManager* classes
- override the `get_human_input` function and async `a_get_human_input` coroutine

Updates to *WorkflowManager* classes:
- add parameters `a_human_input_function` and `a_human_input_timeout` and pass along on to the ExtendedConversableAgent and ExtendedGroupChatManager
- fix for invalid configuration passed from UI when human input mode is not NEVER and no model is attached

Updates to *AutoGenChatManager* class:
- add parameter `human_input_timeout` and pass it along to *WorkflowManager* classes
- add async `a_prompt_for_input` coroutine that relies on `websocket_manager.get_input` coroutine (which snuck into last commit)

Updates to *App.py*
- global var HUMAN_INPUT_TIMEOUT_SECONDS = 180, we can replace this with a configurable value in the future

* add formatting/precommit fixes

* version bump

---------

Co-authored-by: Joe Landers <sailorjoe6@gmail.com>
2024-09-08 21:50:06 +00:00