Commit Graph

576 Commits

Author SHA1 Message Date
msamylea 99fc77ab3b
AutoGen Virtual Focus Group (#2598)
* Update gallery.json

* Update gallery.json

* Update gallery.json

* Update gallery.json

---------

Co-authored-by: Shaokun Zhang <shaokun.zhang@psu.edu>
2024-05-14 09:19:43 +00:00
R. Singh 60c665871a
Feature: Add ability to use a separate python environment in local executor (#2615)
* Add ability to use virtual environments in local executor

* Copy environment variables from parent environment

* Fix mypy errors and formatting

* Account for venv on Windows

* Use a virtual environment context object instead of path

* Add utility method to create a virtual environment

* Remove assertion using `_venv_path`

* Add tests for `create_virtual_env`

* Modify test code and add output assertion

* Modify test code and assertion

* Execute activation script before actual command on windows

* Add docs for using a virtual env
2024-05-11 06:25:20 +00:00
Mark Sze a86c474339
Resuming a GroupChat (#2627)
* Initial resume

* Cleaned up resume function

* Further updating resuming group chat

* Added async resume_chat and documentation

* Added test cases, refined group chat function parameters

* compiled documentation

* Added tests to main

* Removed mdx file.

* Revert "Merge remote-tracking branch 'origin/main' into groupchatresume"

This reverts commit 8f709308f0, reversing
changes made to 8bfcb2bff1.

* Refactored resume to remove initiate_chat

* fix git history

* fix history

* Added clean-up of objects, _groupchat references, and messages_to_string updated

* Added termination-based resumption in notebook, added test cases and improved robustness on resuming messages parameter

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-10 22:56:25 +00:00
Simon Podhajsky b5d856dd36
Add instructions for Docker issue with hash mismatch to FAQ (#2639)
* Add instructions for Docker issue with hash mismatch to FAQ

* Make pre-commit happy
2024-05-10 07:02:31 +00:00
r48Bit 9418b179c2
Update to correct pip install for litellm (#2602)
The doc mentions `pip install litellm[proxy]` which won't work. The correct command is  `pip install 'litellm[proxy]'`.
2024-05-06 16:18:01 +00:00
Wael Karkoub 372ac1e794
Text Compression Transform (#2225)
* adds implementation

* handles optional import

* cleanup

* updates github workflows

* skip test if dependencies not installed

* skip test if dependencies not installed

* use cpu

* skip openai

* unskip openai

* adds protocol

* better docstr

* minor fixes

* updates optional dependencies docs

* wip

* update docstrings

* wip

* adds back llmlingua requirement

* finalized protocol

* improve docstr

* guide complete

* improve docstr

* fix FAQ

* added cache support

* improve cache key

* cache key fix + faq fix

* improve docs

* improve guide

* args -> params

* spelling
2024-05-06 14:16:49 +00:00
Erez A. Korn 5a3a8a5541
Correct link to Jupyter Code Executor in code-executors.ipynb (#2589)
* Correct link to Jupyter Code Executor in code-executors.ipynb

The link to the code executor was referencing the wrong folder.

* Update website/docs/tutorial/code-executors.ipynb

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

* Update website/docs/tutorial/code-executors.ipynb

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

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-05-06 03:19:33 +00:00
Shaokun Zhang e3a7e8a37e
Update AgentOptimizer BibTeX (#2578)
* update paper

* update

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
2024-05-06 00:58:49 +00:00
Abdur Rahman Nawaz 4711d7bb9c
Fix for http client (#2579)
* Fix for http client

* fixed constructor to only ignore the http_client while copying

* fixed comment formating

* removed check for http_client and added error message with docs

* fix formatting

* fix formatting

* added test for http-fix

* changed title and content of docs

* changed test func name
2024-05-04 14:12:36 +00:00
Ian 3a4bb088f7
add faq for autogen and openai assistant compatible version (#2587) 2024-05-04 06:56:50 +00:00
Ian bf0c49d96f
Add a guide doc for GPTAssistantAgent (#2562)
* add a oai assistant agent guide

* add a oai assistant agent guide

* polish

* address comments

* remove useless type ingnore comments

* fix ci

---------

Co-authored-by: Ian Zhai <ian@IandeMacBook-Pro.local>
2024-05-03 02:36:48 +00:00
Justin Trugman 10bb25ba7d
Function Calling with GPTAssistantAgent (#2375)
* Function Calling with GPTAssistantAgent

* Add Link to Notebook in Website

* Add metadata to the notebook

* formatting of H2 and H3 text

* updated to new method of function calling

* Run Pre-commit

* utilize get_function_schema
2024-05-02 16:56:15 +00:00
Gabriel Bezerra Valério a0fffc815b
feat: add bind_dir arg to DockerCommandLineExecutor + docs update (#2309)
* add bind_dir arg and update docs

* lint
2024-04-30 20:49:04 +00:00
giorgossideris 11a43421e3
Min tokens in token limiter (#2400)
* Add minimum token threshold in MessageHistoryLimiter

* Update transforms tests for the threshold

* Move min_threshold_tokens from Message to Token Limiter

* Optimize _check_tokens_threshold

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>

* Apply requested changes (renaming, phrasing, validations)

* Fix format

* Fix _check_tokens_threshold logic

* Update docs and notebook

* Improve phrasing

* Add min_tokens example in notebook

* Add min_tokens example in website docs

* Add min_tokens example in notebook

* Update website docs to be in sync with get_logs change

---------

Co-authored-by: Wael Karkoub <wael.karkoub96@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-29 02:11:16 +00:00
Wael Karkoub a9171211c7
Streamline Testing with `pytest-cov` and `pytest` Defaults (#2490)
* done

* update docs

* try fix

* update workflows

* undo minor fix

* resolve comments

* adds back pytest-asyncio

* minor fix

* add branch coverage

* restore pip install e.

* test with coverage

* fix mypy

* fix coverage + docker + windows combo

* fix bash command

* formatter

* formatter

* one last fix

* I lied, last fix

* fix

* fix retrieve chat test

* fix windows paths

* change cache seed

* down grade openai version

* fix openai mypy

* better error type

* fix image gen cache test

* fix

* experimenting

* fix lmm

* skip cosmos test

* remove cosmos db

* unused imports

* handle more cosmosdb skips

* fix flaky test
2024-04-29 00:27:34 +00:00
Chi Wang c94b5c6a61
Use config list in notebook (#2537) 2024-04-28 19:47:27 +00:00
William W Wang fbcc56c90e
AutoGen cache using Azure Cosmos DB (#2327)
* Create cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Create test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache_factory.py

* Update cache.py

* Update cache_factory.py

* Update test_cache.py

* Update test_cache.py

* Update cache.py

* Update llm-caching.md

* Update cache.py

* Update cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update build.yml

* Update build.yml

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update autogen/cache/cache_factory.py

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

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update .github/workflows/build.yml

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

* Update cache.py

* Update cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache_factory.py

* Update cache_factory.py

* Update cache.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache.py

* Update cache_factory.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update test_cache.py

* Update test_cache.py

* Update test_cache.py

* Update cache.py

* Update cache.py

* Update cache_factory.py

* Update cache.py

* Update cache_factory.py

* Update test_cache.py

* Update test_cache.py

* Update cache.py

* Update cache.py

* Update test_cache.py

* Update cache.py

* Update cache.py

* Update cache_factory.py

* Update cache_factory.py

* Update cache_factory.py

* Update cache_factory.py

* Update cache_factory.py

* Update build.yml

* Update test_cache.py

* Update test_cosmos_db_cache.py

* Update test_cache.py

* Update cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update test_cache.py

* Update test_cosmos_db_cache.py

* Update test_cache.py

* Update test_cosmos_db_cache.py

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update cache_factory.py

* Update cache.py

* Update cosmos_db_cache.py

* Update cache.py

* Update build.yml

* Update test_cache.py

* Update test_cache.py

* Update test_cache.py

* Update test_cache.py

* Update cache_factory.py

* Update cosmos_db_cache.py

* Update test_cache.py

* Update test_cache.py

* Update test_cache.py

* Update test_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update test_cache.py

* Update test_cosmos_db_cache.py

* Update cache.py

* Update cache.py

* Update cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

* Update cache.py

* Update test_cosmos_db_cache.py

* Update cosmos_db_cache.py

* Update cache.py

* Update test_cosmos_db_cache.py

* Update test_cosmos_db_cache.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-26 15:23:18 +00:00
HRUSHIKESH DOKALA 0d29cfb27e
fix: import fixed (#2504) 2024-04-25 20:50:01 +00:00
themataleao 83631b274a
fix typo (#2497) 2024-04-25 17:58:38 +00:00
Audel Rouhi ded2d612c3
[Re-Opened] Support for PGVector Database in Autogen (#2439)
* PGVector Contrib Initial Commit - KnucklesTeam:autogen:pgvector_contrib fork

* Update website/docs/ecosystem/pgvector.md

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

* Updated qdrant installation instructions.

* Fixed openai version.

* Added dependencies to install for qdrant and pgvector in contrib tests.

* Added dependencies to install for qdrant and pgvector in contrib tests.

* Cleaned up dependencies.

* Removed flaml out of setup.py. Used only for notebook example.

* Added PGVector notebook link

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-18 20:00:03 +00:00
Eric Zhu 4c7107c328
Use latest APIs for tool use, code execution and cache in topic pages (#2071)
* Use code executors and cache in docs.

* Update topic pages

* clean up imports

* update notebook

* Update notebooks

* format

* format

* Update links

* revert notebook

* update

* format

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-04-18 16:55:42 +00:00
Eric Zhu 9f281dad75
Add Git LFS check action, fix broken lfs files (#2436)
* Add images to lfs.

* Add github action for lfs check.
2024-04-18 16:50:15 +00:00
Eric Zhu 2df0f39b00
Update the auto_feedback_from_code_execution notebook to use code executor (#2366)
* Use code executors in notebook.

* Add custom code executor guide

* Add to gitignore

* Update

* fix links

* link

* typo

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-18 07:53:19 +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
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
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
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
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
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
liujun121533 77e169c918
Fix typo in conversation-patterns.ipynb (#2322) 2024-04-08 11:53:34 +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
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 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
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
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