Commit Graph

1825 Commits

Author SHA1 Message Date
Josh Trim d473dee664
Add "py" as lang in conversable agent (#1062) (#2144)
* Add "py" as lang in conversable agent (#1062)

* Add conditions to allow for python executable variants (#1062)

* reverted import (#1062)

* Parameterized tests, moved Python variants to a constant (#1062)

* Moved Python variants to a constant (#1062)

* Update autogen/code_utils.py (#1062)

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Update autogen/coding/local_commandline_code_executor.py (#1062)

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* Added PYTHON_VARIANTS as imported constant (#1062)

* ran pre-commit-check  (#1062)

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-12 15:14:51 +00:00
levscaut 812b7f9666
add support for Anthropic Claude function call (#2311)
* add support for function call

* clear pip install output

* add convert function from `tools` to `functions`

* fix empty user input error(temporary)
2024-04-12 14:53:29 +00:00
Wael Karkoub 78cb908f95
adds fix (#2364) 2024-04-12 05:03:32 +00:00
Xiaoyun Zhang 27f172f302
[.Net] Enable JsonMode and deterministic output in AutoGen.OpenAI OpenAIChatAgent (#2347)
* update openai version && add sample for json output

* add example in web

* update update.md

* update image url
2024-04-11 11:15:45 -07:00
William W Wang 689950e58e
Add extra_require for cosmosdb in setup.py (#2355) 2024-04-11 16:37:24 +00:00
Burhanuddin Mustafa Lakdawala 049184edc1
fix markdown for long context user guide (#2351)
https://microsoft.github.io/autogen/docs/topics/long_contexts/
2024-04-11 16:33:01 +00:00
Shaokun Zhang 9069eb926a
support llm_config in AgentOptimizer (#2299)
* support llm_config in agentoptimizer

* fix doc

* restore seed timeout

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-11 13:46:42 +00:00
Wael Karkoub 97b5433cdb
[Fix] Improves Token Limiter (#2350)
* improves token limiter

* improve docstr

* rename arg
2024-04-11 13:42:37 +00:00
Yiran Wu 72bd0bde3c
Update StateFlow to use LocalCommandLineCodeExecutor (#2335)
* update

* update
2024-04-10 21:53:26 +00:00
Li Jiang adb8fd849c
Add a vectordb module (#2263)
* Added vectordb base and chromadb

* Remove timer and unused functions

* Added filter by distance

* Added test utils

* Fix format

* Fix type hint of dict

* Rename test

* Add test chromadb

* Fix test no chromadb

* Add coverage

* Don't skip test vectordb utils

* Add types

* Fix tests

* Fix docs build error

* Add types to base

* Update base

* Update utils

* Update chromadb

* Add get_docs_by_ids

* Improve docstring

* Add get all docs

* Move chroma_results_to_query_results to utils

* Improve type hints

* Update logger

* Update init, add embedding func

* Improve docstring of vectordb, add two attributes

* Improve test workflow
2024-04-10 17:43:08 +00:00
Li Jiang 5a96dc2c29
Add source to the answer for default prompt (#2289)
* Add source to the answer for default prompt

* Fix qdrant

* Fix tests

* Update docstring

* Fix check files

* Fix qdrant test error
2024-04-10 00:45:26 +00:00
Seth 5292024839
Fix docs related to Azure OpenAI's "model" (#2315)
* gitfu to get gh verified commits

* revive lost point

* fixed openai model related docs

* newline EOF
2024-04-09 18:19:30 +00:00
Wael Karkoub eca6c048f7
Document Migration to `TransformMessages` (#2247)
* wip

* tweaks

* undo fix

* undo removal

* adds to FAQ

* modify docs

* undo formatter

* updates docs

* update deprec notice in compressible agent

* restore notebooks

* giorgossideris comments

* cleanup

* resolve comments

* improve english

* improve english

* cleanup

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-09 16:30:15 +00:00
Li Jiang bb374c804e
Add back to top and year (#2324)
* Add back_to_top and year to readme

* Put in right
2024-04-09 16:26:49 +00:00
Chi Wang 1d1a73aed5
cost update for gpt-3.5-turbo-0125 (#2332)
* cost update for gpt-3.5-turbo-0125

* update price

* update price

---------

Co-authored-by: Aaron <aaronlaptop12@hotmail.com>
2024-04-09 16:25:59 +00:00
Mart 918fd6b481
Improve readability of notebooks (#2200)
* Improve readability

* Update context_handling.py

update line breaks according to comment of reviewer

* Update agentchat_groupchat_finite_state_machine.ipynb

corrected sentence according to comment of reviewer

* Update autogen/agentchat/contrib/capabilities/context_handling.py

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

---------

Co-authored-by: Shaokun Zhang <shaokunzhang529@gmail.com>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
2024-04-09 15:07:44 +00:00
Davor Runje 94bff2dae8
Add Websockets example (#2291)
* add websockets example

* polishing

* README.me renamed to README.md

* polishing
2024-04-08 13:03:05 +00:00
liujun121533 77e169c918
Fix typo in conversation-patterns.ipynb (#2322) 2024-04-08 11:53:34 +00:00
Chi Wang 23ef8ecae0
Use assistant tag to filter config (#2316)
* Use assistant tag to  filter config

* bump version to 0.2.23
2024-04-08 08:07:50 +00:00
Yiran Wu 4a4409386c
fix cost (#2292) 2024-04-05 21:12:56 +00:00
Yiran Wu a4c1d58b36
Update StateFlow blog (#2262)
* update

* update

* update
2024-04-05 18:04:47 +00:00
Yiran Wu f7629d668b
Add Custom GroupChat Speaker Selection to tutorial (#2219)
* update

* updated

* update

* update

* update

* update

* remove changes to conversation pattern

* update

* update

* update
2024-04-05 18:03:23 +00:00
Rajan c0d6a484ae
Bug fix. Sleep removal introduced a directory bug (#2296) 2024-04-05 17:54:34 +00:00
Davor Runje 0c0f953df3
Fix types in tool tests (#2285)
* fixed types related to function calling

* polishing

* fixed types in tests
2024-04-05 15:51:49 +00:00
Davor Runje 0e0895fe18
Fix typo in websockets notebook (#2287)
* Fixe typo in websockets notebook

* fixes
2024-04-05 15:49:23 +00:00
Jack Gerrits 16b1db3c90
Copy llm config to avoid external changes (#2290) 2024-04-05 14:06:11 +00:00
Chi Wang ebd0210fa1
bump version to 0.2.22 (#2256)
* bump version to 0.2.22

* doc update

* link update

* consider the failure case
2024-04-05 13:41:14 +00:00
Karthikeya Meesala e513a18ec6
Composio: update text - "Composio Logo" -> "Composio Example" (#2288)
* add composio to ecosystem page

* composio: delete image

* composio: add image

* Update .gitattributes

* Update website/docs/ecosystem/composio.md

* composio: update text

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-05 05:54:27 +00:00
Li Jiang 6b1376b04d
Add bs4 and overlap (#2271)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-05 05:21:32 +00:00
Li Jiang 0d99d45b0f
Fix FileNotFoundError english-words.txt (#2284) 2024-04-05 04:59:57 +00:00
Eric Zhu d4aa27a21b
Fix LMM test in CI by installing lfs (#2282) 2024-04-05 02:39:00 +00:00
Eric Zhu b6ac8da554
Remove info log for IOStream using default. (#2281) 2024-04-05 02:38:31 +00:00
Li Jiang 42b27b9a9d
Add isort (#2265)
* Add isort

* Apply isort on py files

* Fix circular import

* Fix format for notebooks

* Fix format

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-05 02:26:06 +00:00
Karthikeya Meesala 713cc9f6e6
add composio to ecosystem page (#2272)
* add composio to ecosystem page

* composio: delete image

* composio: add image

* Update .gitattributes

* Update website/docs/ecosystem/composio.md

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-04 22:56:06 +00:00
levscaut b49d6206de
add support for system message in claude (#2280) 2024-04-04 22:44:50 +00:00
Li Jiang 46bee1f366
Update RetrieveChat blog to fix some outdated APIs (#2273)
* Fix rag blog

* Update wording
2024-04-04 19:18:39 +00:00
Eric Zhu 4d688a51ad
remove subdirectory .gitattributes files and add relevant files to lfs (#2270)
Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
2024-04-04 18:46:35 +00:00
cheng-tan e83301ed18
fix logging cost flaky test (#2277) 2024-04-04 14:36:46 +00:00
Robert Gibboni 513b0b7884
Get context_max_tokens from retrieve_config if provided (#2259)
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-04-04 01:56:15 +00:00
Mark Sze 89f3cfd1ad
Recommit from my repo - Enhanced speaker name selection during agent name matching. (#2267) 2024-04-03 22:57:41 +00:00
Karthikeya Meesala e980520232
Composio: add new example (#2237)
* Composio: add new example

* composio: update the description
2024-04-03 22:32:18 +00:00
levscaut f5e382a0dd
Add support for Anthropic Claude models (#2245)
* init notebook

* move notebook to website, remove set your api section

* add link to claude page

* replace config_from_json of raw python config

* update cost

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-03 22:21:08 +00:00
Jack Gerrits 0644a2bc0c
Add in memory cache class (#2266)
* Add in memory cache class

* formatting
2024-04-03 22:18:40 +00:00
Harsha S 2053dd9f3d
Multiline docstrings fix (#2130)
* DOC FIX - Formatted Docstrings for the retrieve_user_proxy_agent.py and Added first single line for the class RetrieveUserProxyAgent.

* DOC FIX - Formatted Docstrings for  theinitiate_chats functiion of ChatResult class in  autogen/agentchat/chat.py

* Add vision capability (#2025)

* Add vision capability

* Configurate: description_prompt

* Print warning instead of raising issues for type

* Skip vision capability test if dependencies not installed

* Append "vision" to agent's system message when enabled VisionCapability

* GPT-4V notebook update with ConversableAgent

* Clean GPT-4V notebook

* Add vision capability test to workflow

* Lint import

* Update system message for vision capability

* Add a `custom_caption_func` to VisionCapability

* Add custom function example for vision capability

* Skip test Vision capability custom func

* GPT-4V notebook metadata to website

* Remove redundant files

* The custom caption function takes more inputs now

* Add a more complex example of custom caption func

* Remove trailing space

---------

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

* Native tool call support for Mistral AI API and topic notebook. (#2135)

* Support for Mistral AI API and topic notebook.

* formatting

* formatting

* New conversational chess notebook using nested chats and tool use (#2137)

* add chess notebook

* update

* update

* Update notebook with figure

* Add example link

* redirect

* Clean up example format

* address gagan's comments

* update references

* fix links

* add webarena in samples (#2114)

* add webarena in samples/tools

* Update samples/tools/webarena/README.md

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

* Update samples/tools/webarena/README.md

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

* Update samples/tools/webarena/README.md

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

* update installation instructions

* black formatting

* Update README.md

---------

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

* context to kwargs (#2064)

* context to kwargs

* add tag

* add test

* text to kwargs

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website (#2131)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  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: Eric Zhu <ekzhu@users.noreply.github.com>

* Parse Any HTML-esh Style Tags (#2046)

* tried implementing my own regex

* improves tests

* finally works

* removes prints

* fixed test

* adds start and end

* delete unused imports

* refactored to use new tool

* significantly improved algo

* tag content -> tag attr

* fix tests + adds new field

* return full match

* return remove start and end

* update docstrings

* update docstrings

* update docstrings

---------

Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Integrate AgentOptimizer (#1767)

* draft agent optimizer

* refactor

* remove

* change openai config interface

* notebook

* update blog

* add test

* clean up

* redir

* update

* update interface

* change model name

* move to contrib

* Update autogen/agentchat/contrib/agent_optimizer.py

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

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>

* Introducing IOStream protocol and adding support for websockets (#1551)

* Introducing IOStream

* bug fixing

* polishing

* refactoring

* refactoring

* refactoring

* wip: async tests

* websockets added

* wip

* merge with main

* notebook added

* FastAPI example added

* wip

* merge

* getter/setter to iostream added

* website/blog/2024-03-03-AutoGen-Update/img/dalle_gpt4v.png: convert to Git LFS

* website/blog/2024-03-03-AutoGen-Update/img/gaia.png: convert to Git LFS

* website/blog/2024-03-03-AutoGen-Update/img/teach.png: convert to Git LFS

* add SSL support

* wip

* wip

* exception handling added to on_connect()

* refactoring: default iostream is being set in a context manager

* test fix

* polishing

* polishing

* polishing

* fixed bug with new thread

* polishing

* a bit of refactoring and docs added

* notebook added to docs

* type checking added to CI

* CI fix

* CI fix

* CI fix

* polishing

* obsolete todo comment removed

* fixed precommit error

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* [CAP] [Feature] Get list of actors from directory service. (#2073)

* Search directory for list of actors using regex '.*' gets all actors

* docs changes

* pre-commit fixes

* Use ActorInfo from protobuf

* pre-commit

* Added zmq tests to work on removing sleeps

* minor refactor of zmq tests

* 1) Change DirSvr to user Broker.  2) Add req-router to broker 3) In ActorConnector use handshake and req/resp to remove sleep

* 1) Change DirSvr to user Broker.  2) Add req-router to broker 3) In ActorConnector use handshake and req/resp to remove sleep

* move socket creation to thread with recv

* move socket creation to thread with recv

* Better logging for DirectorySvc

* better logging for directory svc

* Use logging config

* Start removing sleeps

* pre-commit

* Cleanup monitor socket

* Mark cache as a protocol and update type hints to reflect (#2168)

* Mark cache as a protocl and update type hints to reflect

* int

* undo init change

	modified:   autogen/agentchat/chat.py

* fix(): fix word spelling errors (#2171)

* Implement User Defined Functions for Local CLI Executor (#2102)

* Implement user defined functions feature for local cli exec, add docs

* add tests, update docs

* fixes

* fix test

* add pandas test dep

* install test

* provide template as func

* formatting

* undo change

* address comments

* add test deps

* formatting

* test only in 1 env

* formatting

* remove test for local only

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>

* simplify getting-started; update news (#2175)

* simplify getting-started; update news

* bug fix

* update (#2178)

Co-authored-by: AnonymousRepoSub <“shaokunzhang529@outlook.com” >

* Fix formatting of admonitions in udf docs (#2188)

* Fix iostream on new thread (#2181)

* fixed get_stream in new thread by introducing a global default

* fixed get_stream in new thread by introducing a global default

---------

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

* Add link for rendering notebooks docs on website (#2191)

* Transform Messages Capability (#1923)

* wip

* Adds docstrings

* fixed spellings

* wip

* fixed errors

* better class names

* adds tests

* added tests to workflow

* improved token counting

* improved notebook

* improved token counting in test

* improved docstrings

* fix inconsistencies

* changed by mistake

* fixed docstring

* fixed details

* improves tests + adds openai contrib test

* fix spelling oai contrib test

* clearer docstrings

* remove repeated docstr

* improved notebook

* adds metadata to notebook

* Improve outline and description (#2125)

* better dir structure

* clip max tokens to allowed tokens

* more accurate comments/docstrs

* add deperecation warning

* fix front matter desc

* add deperecation warning notebook

* undo local notebook settings changes

* format notebook

* format workflow

---------

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

* Bump express from 4.18.2 to 4.19.2 in /website (#2157)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
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>

* add clarity analytics (#2201)

* Docstring formatting fix: Standardize docstrings to adhere to Google style guide, ensuring consistency and clarity. and also fixed the broken link for autogen/agentchat/chat.py

* Docstring fix: Reformattted docstrings to adhere to Google style guide, nsuring consistency and clarity. For agentchat/contrib/retrieve_user_proxy_agent.py file

* Fixed Pre-Commit Error, Trailing spaces on agentchat/chat.py

* Fixed Pre-Commit Error, Trailing spaces on agentchat/chat.py

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: olgavrou <olgavrou@gmail.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>
Co-authored-by: Shaokun Zhang <shaokunzhang529@gmail.com>
Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Rajan <rajan.chari@yahoo.com>
Co-authored-by: calm <1191465097@qq.com>
Co-authored-by: AnonymousRepoSub <“shaokunzhang529@outlook.com” >
2024-04-03 02:52:18 +00:00
Benjamin Stein 1c22a93535
Update listdir() in sample code to take correct args (#2261)
Executing this code (Python 3.11, MacOS) returns error
`TypeError: listdir: path should be string, bytes, os.PathLike, integer or None, not TemporaryDirectory`
Using the string name of the dir works better.
2024-04-03 02:33:27 +00:00
Jack Gerrits 6c3d779e99
Auto collapse side bar entries when selecting other sections (#2257) 2024-04-02 23:13:18 +00:00
Beibin Li 1674c3cbbb
Fix Vision Capability Test for MacOS (#2260)
* Update mm test: create dummy image in case file corrput

* Update vision capability test for MacOS

* Lint

* Upload image for testing
2024-04-02 23:12:45 +00:00
Beibin Li c030225eb6
Update mm test: create dummy image in case file corrput (#2258) 2024-04-02 17:31:09 +00:00
Eric Zhu c27eb0d0c0
Break up contributor guide for better navigability (#2250)
* contributor guide

* update
2024-04-02 14:51:22 +00:00
Eric Zhu c63c52adec
Notebook on web scraping with tool use (#2192)
* Add web scrapping notebook

* formatting

* tags

* Update

* update
2024-04-02 14:09:10 +00:00