Commit Graph

1735 Commits

Author SHA1 Message Date
Jeffrey Su
08726421fc #2708 add Add a judgment to the graph constructor (#2709)
* #2708 add Add a judgment to the graph constructor

* #2708 add Add a judgment to the graph constructor & added unit test

* #2708 #2079 move GraphTests to AutoGen.Tests; delete AutoGen.Core.Tests project
2024-06-25 23:09:08 +00:00
Xiaoyun Zhang
5e744f7fe4 improve Create agent with tools and add tuturial reference in index.md (#3024) 2024-06-25 21:40:52 +00:00
James Woffinden-Luey
17dbaa514e AgentEval Blogpost (#2954)
* first draft of agent eval blog post

* adding NextSteps section

* Update website/blog/2024-06-21-AgentEval/index.mdx

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

* Update website/blog/2024-06-21-AgentEval/index.mdx

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

* addressing some pr comments

* fixing whitespace

* fixing typo

* adding bit about sequential chats

* fixing whitespace

* adding more about verifier

---------

Co-authored-by: Beibin Li <BeibinLi@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-25 18:02:52 +00:00
Xiaoyun Zhang
f438d980b0 fix #2975 (#3012) 2024-06-25 16:52:55 +00:00
Xiaoyun Zhang
203954e9c1 [.Net] Update website with Tutorial section (#2982)
* update

* Update -> Releaes Notes

* add ImageChat

* update

* update
2024-06-25 16:23:24 +00:00
Yiran Wu
1582927ccd Improve doc in tutorial/conversation-patterns and customized_speaker_selection (#3006)
* update

* update

---------

Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
2024-06-23 23:19:37 +00:00
Qingyun Wu
03259b2229 bump version (#2999)
Co-authored-by: Li Jiang <bnujli@gmail.com>
v0.2.31
2024-06-22 13:31:52 +00:00
Alex Reibman
9b92093b00 LLM Observability documentation fixes: Broken links, grammar, and spelling (#2995)
* update markdown hyperlinks to stable urls

* update notebook images and text

* re-write observability section

* Updated section

* update wording

* added newline

* update styling in image tags to be jsx compatible

* added text

* update link

* simplified text

---------

Co-authored-by: Braelyn Boynton <bboynton97@gmail.com>
2024-06-22 03:05:11 +00:00
Mark Sze
e4720bc6cf Message handling to support multiple function calls (#2997) 2024-06-22 02:24:23 +00:00
Mark Sze
e3b2560a26 Fixed alternating message role bug in Anthropic client (#2992)
* Fixed alternating message role bug

* Fix bug
2024-06-21 22:39:24 +00:00
Qingyun Wu
b4837215db update notebook wording and format (#2991) v0.2.30 2024-06-21 19:58:35 +00:00
Qingyun Wu
89c2f20166 Bump version to 0.2.30 (#2990) 2024-06-21 19:30:26 +00:00
HRUSHIKESH DOKALA
20f8ba9cfa fix: created in ChatCompletion for clients (#2988) 2024-06-21 18:52:23 +00:00
Yiran Wu
84f82dc5ec Uniform Interface for calling different LLMs (#2916)
* update

* update

* Minor tweaks on text

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-06-21 17:30:59 +00:00
Mark Sze
b1ec3ae545 Together AI Client (#2919)
* First pass together.ai client class

* Config handling, models and cost

* Added tests, moved param management to create function

* Tests, parameter, validation, logging updates

* Added use of client_utils PR 2949

* Updated to return OAI response

* Notebook example

* Improved function calling, updated tests, updated notebook with Chess example

* Tidied up together client class, better parameter handling, simpler exception capture, warning for no cost, reuse in tests, cleaner tests

* Update of documentation notebook, replacement of old version

* Fix of messages parameter for hide_tools function call

* Update autogen/oai/together.py

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>

* Update together.py to fix text

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: Yiran Wu <32823396+yiranwu0@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-21 17:14:44 +00:00
Garner Fox McCloud
843c343383 Anthropic client fixes (#2981)
* add claude 3.5 sonnet to pricing

* Fix import error for client_utils

* fix import order for ruff formatter

* name key is not supported in anthropic message so let's remove it

* Improved tool use message conversion, changed create to return standard response

* Converted tools to messages for speaker selection, moved message conversion to function, corrected bugs

* Minor bracket typo.

* Renaming function

* add groupchat and run notebook

---------

Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-06-21 16:40:55 +00:00
Li Jiang
3e3f2985c2 Fix qdrant version (#2984) 2024-06-21 09:51:17 +00:00
Mark Sze
27e3690378 Mistral Client (#2892)
* Initial commit of Mistral client class

* Updated to manage final system message for reflection_with_llm

* Add Mistral support to client class

* Add Mistral support across the board (based on Gemini changes)

* Test file for Mistral client

* Updated handling of config, added notebook for documentation

* Added support for additional API parameters

* Remove unneeded code, updated exception raising

* Updated handling of keywords, including type checks, defaults, warnings. Updated notebook example to remove logging warnings.

* Added class description.

* Updated tests to support new config handling.

* Moved parameter parsing to create function, minimised init, added parameter tests

* Refined parameter validation

* Correct spacing

* Fixed string concat in parameter validation

* Corrected upper/lower bound warning

* Use client_tools, tidy up Mistral create, better handle tool call response, tidy tests

* Update of documentation notebook, replacement of old version

* Update to handle multiple tool_call recommendations in a message

* Updated tests to accommodate multiple tool_calls as well as content in message

* Update autogen/oai/mistral.py comment

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>

* cleanup, rewrite mock

* update

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Co-authored-by: kevin666aa <yrwu000627@gmail.com>
2024-06-21 05:42:16 +00:00
Xiaoyun Zhang
dd0024c01c [.Net] add ReAct sample (#2977)
* add ReAct sample

* fix source geenrator test
2024-06-20 22:30:16 +00:00
Xiaoyun Zhang
393f6fc76c [.Net] fix #2859 (#2974)
* add getting start sample project

* update

* update

* revert change
2024-06-20 17:47:31 +00:00
Li Jiang
29997f0cf1 Fix #2960 by checking if the values are a list of lists. (#2971)
* Fix #2960 by checking values are list of list

* Reduce dictionary look up overhead
2024-06-20 05:24:42 +00:00
HRUSHIKESH DOKALA
08a7578de8 type fix for ChatResult (#2973) 2024-06-20 05:17:19 +00:00
NanthagopalEswaran
ded8e1b280 Fix #2845 - LocalCommandLineCodeExecutor is not working with virtual environments (#2926)
* Used absolute path of virtual environment bin path in local command executors

* Checked if the expected venv is used or not

* Added code comments for documentation

* fix: format issue - shutil lib

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-19 13:39:23 +00:00
Shobhit Vishnoi
0bc08cec49 a_initaite_chats update (#2958) 2024-06-19 13:30:23 +00:00
HRUSHIKESH DOKALA
32fa709e13 Anthropic Client (#2931)
* intial setup for the anthropic client with cost config

* update: other methods added

* fix: formatting

* fix: config unused

* update: changes made in the client

* update: test added to the workflow

* update: added tests to the anthropic client

* fix: errors in workflows and client

* fix

* fix: anthropic tools type

* update: notebook anthropic

* Nonetype fixed

* fix-tests config

* update: tests and client issues

* logger support

* remove sys path

* updated the functioning of the client

* update: type hints and stream

* skip tests- importerror

* fix: anthropic client and tests

* none fix

* Alternating roles, parameter keywords, cost on response,

* update: anthropic notebook

* update: notebook with more details

* devcontainer

* update: added validate_params from the client_utils

* fix: formatting

* fix: minor comment

---------

Co-authored-by: Mark Sze <mark@sze.family>
2024-06-19 06:15:12 +00:00
Mark Sze
064214f62b should_hide_tools function added to client_utils (#2966) 2024-06-19 05:22:15 +00:00
dependabot[bot]
b43ec8d44a Bump ws from 7.5.9 to 7.5.10 in /website (#2964)
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 23:25:00 +00:00
Ikko Eltociear Ashimine
54190bbacd Update agentchat_function_call_currency_calculator.ipynb (#2952)
minor fix
2024-06-18 05:38:35 +00:00
Olaoluwa Ademola Salami
a0eb557dd7 change specified api-version (#2955) 2024-06-18 05:37:38 +00:00
Mark Sze
8dd3a8a8f9 Client class utilities (#2949)
* Addition of client utilities, initially for parameter validation

* Corrected test

* update: type checks and few tests

* fix: docs, tests

---------

Co-authored-by: Hk669 <hrushi669@gmail.com>
2024-06-18 04:01:15 +00:00
Zoltan Lux
10b8fa548b Fix missing messages in Gemini history (#2906)
* fix missing message in history

* fix message handling

* add list of Parts to Content object

* add test for gemini message conversion function

* add test for gemini message conversion

* add message to asserts

* add safety setting support for vertexai

* remove vertexai safety settings
v0.2.29
2024-06-14 18:13:19 +00:00
Qingyun Wu
6d4cf406f9 Filter models with tags instead of model name (#2912)
* identify model with tags instead of model name

* models

* model to tag

* add more model name

* format

* Update test/agentchat/test_function_call.py

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

* Update test/agentchat/test_function_call.py

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

* Update test/agentchat/test_tool_calls.py

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

* Update test/agentchat/test_tool_calls.py

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

* remove uncessary tags

* use gpt-4 as tag

* model to tag

* add tag for teachable agent test

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: AutoGen-Hub <flaml20201204@gmail.com>
2024-06-14 15:58:17 +00:00
LeoLjl
c54e8a5db1 [Autobuild] improve robustness and reduce cost (#2907)
* Update Autobuild.

* merge main into autobuild

* update test for new autobuild

* update author info

* fix pre-commit

* Update autobuild notebook

* Update autobuild_agent_library.ipynb

* Update autobuild_agent_library.ipynb

* Fix pre-commit failures.

---------

Co-authored-by: Linxin Song <rm.social.song1@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-14 14:14:08 +00:00
Xiaoyun Zhang
55b2df8bf9 [.Net] update oai tests by using new OpenAI resources (#2939)
* update oai tests

* Update MetaInfo.props
2024-06-14 13:53:12 +00:00
whichxjy
d020cccf01 Fix repeated comma typo (#2940) 2024-06-14 13:48:45 +00:00
thetechoddbug (José María Gutiérrez)
7e43935229 Update OAI_CONFIG_LIST_sample (#2867)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-13 20:15:38 +00:00
Yiran Wu
39f688778e Allow passing in custom pricing in config_list (#2902)
* update

* update

* TODO comment removed

* update

---------

Co-authored-by: Yiran Wu <32823396+kevin666aa@users.noreply.github.com>
Co-authored-by: Davor Runje <davor@airt.ai>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-13 20:10:47 +00:00
Xiaoyun Zhang
cd8f437a71 update update.md (#2937) 2024-06-13 20:07:18 +00:00
dependabot[bot]
c221eea14e Bump braces from 3.0.2 to 3.0.3 in /website (#2934)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 17:27:01 +00:00
Davor Runje
c873080b0d changed CRLF to LF (#2935) 2024-06-13 16:44:11 +00:00
Xiaoyun Zhang
ca4f717616 [.Net] Add Gemini samples to AutoGen.Net website + configure Gemini package to be ready for release (#2917)
* update website

* fix buid error

* update
2024-06-13 08:01:16 +00:00
Wael Karkoub
004ba22637 human input mode annotations fixed (#2864)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-13 04:53:55 +00:00
ken-gravilon
f36b658f8f Docs typo cli-code-executor.ipynb (#2909)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-12 14:36:26 +00:00
Li Jiang
11b8c767ca Improve update context condition checking rule (#2883)
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-06-12 14:26:19 +00:00
Davor Runje
a0787aced3 pre-commit version update and a few spelling fixes (#2913) 2024-06-12 06:26:22 +00:00
Davor Runje
53a59ddac6 CRLF changed to LF (#2915) 2024-06-12 06:25:18 +00:00
Daniel (Neng) Wang
b03fb6d6a3 Change chunk size of vectordb from max_tokens to chunk_token_size (#2896)
* Update retrieve_user_proxy_agent.py

* Update retrieve_user_proxy_agent.py

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-11 13:09:24 +00:00
Li Jiang
067fa88b67 Update notebook (#2886) 2024-06-11 13:04:37 +00:00
Audel Rouhi
bf7e4d619c Bugfix: PGVector/RAG - Calculate the Vector Size based on Model Dimensions (#2865)
* Calculate the dimension size based off model chosen.

* Added example docstring.

* Validated working notebook with sentence models of different dimensions.

* Validated removal of model_name working.

* Second example uses conn object.

* embedding_function no longer directly references .encode

* Fixed pre-commit issue.

* Use try/except to raise error when shape is not found in embedding function.

* Re-ran notebook.

* Update autogen/agentchat/contrib/vectordb/pgvectordb.py

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Update autogen/agentchat/contrib/vectordb/pgvectordb.py

Co-authored-by: Li Jiang <bnujli@gmail.com>

* Added .encode

* Removed example comment.

* Fix overwrite doesn't work with existing collection when custom embedding function has different dimension from default one

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-06-11 12:16:56 +00:00
Chi Wang
2d6c8c012b version update (#2908)
* version update

* version update
2024-06-10 18:23:51 +00:00