Commit Graph

3376 Commits

Author SHA1 Message Date
Shaokun Zhang
0c5aed0489 add AgentOptimizer test in CI (#2380)
* add test

* fix test

* fix

---------

Co-authored-by: AnonymousRepoSub <“shaokunzhang529@outlook.com” >
2024-04-16 05:07:58 +00:00
Dustin
01f063d22a Update code-executors.ipynb (#2396)
fix grammar
2024-04-16 05:04:12 +00:00
Dustin
fd4e722f63 Update code-executors.ipynb (#2394)
fix spelling typo
2024-04-16 05:03:07 +00:00
Dustin
f3b9febead Update chat-termination.ipynb (#2393)
fix grammar mistake
2024-04-16 04:59:46 +00:00
Chi Wang
fbe8476726 fix local test failures (#2386)
* fix local test failures

* set skip
v0.2.24
2024-04-15 12:34:26 +00:00
HRUSHIKESH DOKALA
59daf78d9f Made the cost info easier to read (#2356)
* gather_usage_summary has been updated

* updated cost info to 'usage_including_cached_inference' and 'usage_excluding_cached_inference'

* fix: pre-commit formatting for cost_info

* improved cost explanation and doc

* improved cost info doc

* include - exclude

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-15 01:18:50 +00:00
giorgossideris
90883904c5 Standardize printing of MessageTransforms (#2308)
* Standardize printing of MessageTransforms

* Fix pre-commit black failure

* Add test for transform_messages printing

* Return str instead of printing

* Rename to_print_stats to verbose

* Cleanup

* t i# This is a combination of 3 commits.

Update requirements

* Remove lazy-fixture

* Avoid calling apply_transform in two code paths

* Format

* Replace stats with logs

* Handle no content messages in TokenLimiter get_logs()

* Move tests from test_transform_messages to test_transforms

---------

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>
2024-04-14 00:48:24 +00:00
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
Kosta Petan
4808f2145a Fix GH bugs (#50)
* fix gh token lifetime and updating existing file in a branch

* create GH client transiently

* few more bug fixes
2024-04-12 15:10:20 +02:00
Wael Karkoub
78cb908f95 adds fix (#2364) 2024-04-12 05:03:32 +00:00
Kosta Petan
9168d115fd deploy to azure with azd (#49) 2024-04-11 22:00:59 +02: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
v0.2.23
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
Kosta Petan
65a262b0be Refactor abstractions (#46) 2024-04-09 13:16:09 +02: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) v0.2.22 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
Kosta Petan
2bece0d27e check if repo is empty, create readme if it is (#45) 2024-04-05 16:34:15 +02: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
Carlos Garcia Lalicata
cc66a1ca71 [gh-flow] If Item.Message is null it tries to post empty messages (#42) 2024-04-05 07:43:15 +02:00
Carlos Garcia Lalicata
b08b696145 [gh-flow] Fail to start if settings are missing (#43) 2024-04-05 07:42:24 +02: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