3039 Commits

Author SHA1 Message Date
Shobhit Vishnoi
8033fc6228
initate chats enhancement (#2404)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-18 06:20:48 +00:00
Chi Wang
d307818dd9
improve test speed (#2406)
* improve test speed

* speed up test

* speed up test
2024-04-17 20:10:18 +00:00
Eric Zhu
297904f210
Add link to PromptFlow Sample App (#2418)
* Update promptflow.md

* Update promptflow.md
2024-04-17 16:53:19 +00:00
Sunil Sattiraju
ba2cd4ed13
add promptflow example (#2369)
* add promptflow example

* add promptflow example

* add newline and sort imports

* add newline and sort imports

* sort imports

* fix format errors

* update readme

* add ecosystem docs

* update broken link

* update broken link

* removing link to samples folder

* update readme
2024-04-17 16:13:24 +00:00
HRUSHIKESH DOKALA
beb1d03ae9
Update type hints for improved readability and maintainability (#2408) 2024-04-17 16:12:34 +00:00
Eric Zhu
3c266c5c01
Fix function call notebook to make sure title is displayed. (#2403)
* Fix function call notebook to make sure title is displayed.

* Fix formatting

* formatting
2024-04-17 14:02:10 +00:00
Li Jiang
c4e570393d
Support setting vector_db as a param (#2313)
* 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

* Update init params

* Update init vector db

* Add get all docs

* Move chroma_results_to_query_results to utils

* Add init vectordb

* Convert format of results for old version

* Improve type hints

* Update get_context for new query results format

* Fix typo

* Improve init db

* Update default folder

* Update logger

* Update init, add embedding func

* Update distance_threshold

* Fix logger name

* Update qdrant

* Fix init db

* Update notebooks

* Use kwargs to improve readability

* Improve docstring of vectordb, add two attributes

* Add db_config

* Update gitignore

* Update comments

* Add source

* Fix file downloaded from urls have the same name

* Remove files added by mistake

* Improve docstring

* Update docstring

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

* Update docstring

* Update docstring

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-17 08:30:05 +00:00
Chi Wang
4ab8a88487
update cost info (#2401) v0.2.25 2024-04-17 00:43:11 +00:00
Beibin Li
0aaf30a8da
Merge "Gemini" feature into the main branch (#2360)
* Start Gemini integration: works ok with Text now

* Gemini notebook lint

* try catch "import" for Gemini

* Debug: id issue for chat completion in Gemini

* Add RAG example

* Update docs for RAG

* Fix missing pydash

* Remove temp folder

* Fix test error in runs/7206014032/job/19630042864

* Fix tqdm warning

* Fix notebook output

* Gemini's vision model is supported now

* Install instructions for the Gemini branch

* Catch and retry when see Interval Server Error 500

* Allow gemini to take more flexible messages
i.e., it can take messages where "user" is not the last role.

* Use int time for Gemini client

* Handle other exceptions in gemini call

* rename to "create" function for gemini

* GeminiClient compatible with ModelClient now

* Lint

* Update instructions in Gemini notebook

* Lint

* Remove empty blocks from Gemini notebook

* Add gemini into example page

* self.create instead of call

* Add py and Py into python execution

* Remove error code from merging

* Remove pydash dependency for gemini

* Add cloud-gemini doc

* Remove temp file

* cache import update

* Add test case for summary with mm input

* Lint: warnings instead of print

* Add test cases for gemini

* Gemini test config

* Disable default model for gemini

* Typo fix in gemini workflow

* Correct grammar in example notebook

* Raise if "model" is not provided in create(...)

* Move TODOs into a roadmap

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

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

* Gemini test config update

* Update setup.py

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

* Update test/oai/test_gemini.py

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

* Update test/oai/test_gemini.py

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

* Remove python 3.8 from gemini
No google's generativeai for Windows with Python 3.8

* Update import error handling for gemini

* Count tokens and cost for gemini

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Davor Runje <davor@airt.ai>
2024-04-17 00:24:07 +00:00
Media
f4977e2263
DOCS: Add AutoTX to gallery (#2390)
* Update gallery.json with AutoTX

* Update gallery.json

* add sample image

* rename image to autotx.png

* Update gallery.json description

* Update gallery.json tags

* Update website/src/data/gallery.json

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-16 19:16:26 +00:00
Grigorij Dudnik
36f1bf5a56
Code writing with a function call notebook created (#2121)
* code writing with function call notebook created

* code formatting

* code formatting

* code formatting

* Remarks improved

* trying to resolve conflicts in Examples.md

* trying to solve conflict, improving llm_config

* working on conflict in examples

* working on conflict in examples

* working with examples.md

* examples

* repairing examples

* Examples updated

* notebook included

* code formatting

* code formatting

* tool defenition added

* code formatting

* dot removed

* starting code

* starting code

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-16 15:40:49 +00:00
Dustin
d5276b9cce
Update code-executors.ipynb (#2395)
fix grammar

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-16 15:33:16 +00:00
Wei
c97f0ffc3c
[Feat] browser should support custom base url for bing search (#2321)
* feat: browser is now support custom base url

* fix: replae the base url position.

* Update bing_base_url parameter in SimpleTextBrowser class
2024-04-16 14:07:50 +00:00
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