Commit Graph

1825 Commits

Author SHA1 Message Date
Xiaoyun Zhang 2c225e7a77
Revert "Update Installation.md (#3470)"
This reverts commit 09dbb3ca8e.
2024-09-05 14:32:53 -07:00
Jose Luis Latorre Millas 09dbb3ca8e
Update Installation.md (#3470)
update on the nightly build guidance
2024-09-03 13:46:40 -07:00
Xiaoyun Zhang 3c61969b21
Merge branch 'main' into dotnet 2024-04-25 15:09:18 -07:00
XiaoYun Zhang 999371adb5 revert gitattributes 2024-04-25 15:08:45 -07:00
XiaoYun Zhang f34feb6215 update 2024-04-25 15:06:29 -07:00
HRUSHIKESH DOKALA 0d29cfb27e
fix: import fixed (#2504) 2024-04-25 20:50:01 +00:00
Xiaoyun Zhang cc4564f45b
Merge branch 'main' into dotnet 2024-04-25 13:49:33 -07:00
themataleao 83631b274a
fix typo (#2497) 2024-04-25 17:58:38 +00:00
Li Jiang 2a4ccd0622
Fix python not supported in macos (#2503)
* Fix python 3.8 and 3.9 not supported for macos

* Fix python 3.8 and 3.9 not supported for macos

* Fix format
2024-04-25 14:33:36 +00:00
Xiaoyun Zhang de2b3a67d7
Merge branch 'main' into dotnet 2024-04-23 22:07:42 -07:00
asandez1 31fe75ad0e
Add support for HTML, CSS and Javascript in LocalCommandLineCodeExecutor with Mapping executor/saver #2303 (#2464)
* Add support for HTML, CSS and Javascript in LocalCommandLineCodeExecutor

* init branch

* init branch

* feat: test code execution added

* fix: test update

* fix: test

* fix: policy test

* feat: default policy

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-24 01:21:24 +00:00
Eduardo Salinas ebde196d6b
feat: add event logging api and more tracing (#2478)
* feat: add event logging api and more tracing

* code fmt shenanigans

* fixup

* Update test_agent_logging.py

* Update test_agent_logging.py

* Update test_agent_logging.py

* Update sqlite_logger.py

* Update test_agent_logging.py

* Update sqlite_logger.py

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-23 22:27:47 +00:00
Xiaoyun Zhang 09de3cc07d
Update dotnet-release.yml (#2488) 2024-04-23 11:37:08 -07:00
Xiaoyun Zhang 7cadfb0662
Merge branch 'main' into dotnet 2024-04-23 11:23:50 -07:00
Ian a41182a93f
Support openai assistant v2 API (#2466)
* adapted to openai assistant v2 api

* fix comments

* format code

* fix ci

* Update autogen/agentchat/contrib/gpt_assistant_agent.py

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

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2024-04-23 17:26:06 +00:00
Xiaoyun Zhang 2daae42708
enable lfs support in dotnet workflow (#2483)
* enable lfs support in dotnet workflow

* Update dotnet-release.yml

* Update dotnet-build.yml
2024-04-23 17:25:11 +00:00
Xiaoyun Zhang 7cce072a27
[.Net] add mistral example (#2482)
* update existing examples to use messageCOnnector

* add overview

* add function call document

* add example 14

* add mistral token count usage example

* update version
2024-04-22 17:58:22 -07:00
Wael Karkoub 7f1a810630
Adds Message History to a `ConversableAgent` (#2437)
* updates docstr +  fix spelling

* fix docstr

* maybe a lfs fix?

* Revert "maybe a lfs fix?"

This reverts commit 2ea2dade26.

* revert

* rename arg to chat_messages

* minor fix
2024-04-22 21:44:43 +00:00
luxuncang 4e13f22cbf
Make the port number optional in JupyterConnectionInfo() (#2473)
* fix: JupyterConnectionInfo port type

* fix: jupyter_client base_url

* fix: JupyterConnectionInfo
2024-04-22 21:43:09 +00:00
Xiaoyun Zhang 1a60660e2d
track (#2471) 2024-04-21 23:45:16 -07:00
Xiaoyun Zhang e650cf0ac6
Merge branch 'main' into dotnet 2024-04-21 14:02:01 -07:00
Li Jiang b7366b570f
Update RetrieveChat extra dependencies (#2449) 2024-04-20 18:32:57 +00:00
Xiaoyun Zhang ebb4c8cb5f
[.Net] Add AutoGen.Mistral package (#2330)
* add mstral client

* enable streaming support

* add mistralClientAgent

* add test for function call

* add extension

* add support for toolcall and toolcall result message

* add support for aggregate message

* implement streaming function call
2024-04-19 18:44:32 -07: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
olgavrou d5e30e09e8
print the response in the warning (#2438) 2024-04-18 18:17:09 +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
Chi Wang 6636689cb9
speed up notebook in CI and fix CI failures (#2427)
* speed up notebook in CI

* improve notebook

* comment about filter

* bug fix for summary

* bump version to 0.2.26

* restrict openai version

* news update

* add tags in example
2024-04-18 16:43:34 +00:00
saberuster 442c10bd7b
support openai 'sk-proj-' apikey format (#2426)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-04-18 15:58:37 +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
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) 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
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