1863 Commits

Author SHA1 Message Date
Anush
5b1dc3bf63
feat: Qdrant support for the VectorDB interface (#3035)
* feat: Qdrant support

* chore: pre-defined vector db

* Fix issues

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
2024-07-15 13:19:58 +00:00
Mark Ward
24d509c1b6
middleware examples updated to return modified message passing assertion. modified the default agent reply so that it is different from the user's prompt (#3128) 2024-07-13 20:20:56 +00:00
Chi Wang
ff311eec6c
fix notebook (#3093) 2024-07-11 23:45:05 +00:00
Xiaoyun Zhang
210e94d705
[.Net] Prepare release note for AutoGen.Net 0.0.16 (#3117)
* add release note

* update repo info
2024-07-11 19:31:40 +00:00
Yiran Wu
87bcaa43de
add stateflow to related papers (#3108) 2024-07-11 17:36:48 +00:00
Xiaoyun Zhang
b021e44540
[.Net] Agent as service: Run an IAgent as openai chat completion endpoint (#2633)
* update

* add test

* clean up

* update

* Delete dotnet/src/AutoGen.Server/AutoGen.Service.csproj.user

* implement streaming

* add sample project

* rename AutoGen.Service to AutoGen.WebAPI

* rename AutoGen.Service to AutoGen.WebAPI
2024-07-11 16:34:15 +00:00
Xiaoyun Zhang
4e95630fa9
[.Net] fix #2695 and #2884 (#3069)
* add round robin orchestrator

* add constructor for orchestrators

* add tests

* revert change

* return single orchestrator

* address comment
2024-07-10 22:12:42 +00:00
Zoltan Lux
f55a98f32b
Demo Notebook for Using Gemini with VertexAI (#3032)
* add notebook for using Gemini with VertexAI

* add missing image

* remove part with workload identity federation

* Spelling

* Capitalisation and tweak on config note.

* autogen gemini gcp image

* fix formatting

* move gemini vertexai notebook to website/docs/topics/non-openai-models

* Adjust license

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

* remove auto-generated cell

---------

Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
2024-07-07 22:11:35 +00:00
Prithvi
82903f5f89
[.Net] Update FunctionCallTemplate.tt to encode " (#3068)
* Update FunctionCallTemplate.tt

changed the desscription assigning to handle double quotes in comments and prevent the generated code from breaking.

* Added the necessary changes

Fixed handling of double quotes in descriptions within FunctionCallTemplate.tt.
Standardized newline characters to ensure consistency.
Updated test cases in FunctionCallTemplateEncodingTests to verify correct encoding of double quotes in descriptions.
Cleaned up unnecessary using directives in FunctionCallTemplateEncodingTests.
Aligned the template with the approved test output.

* test cases passing

Test cases passing like `Starting test execution, please wait...
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:     9, Skipped:     0, Total:     9, Duration: 66 ms - AutoGen.SourceGenerator.Tests.dll (net8.0)`

* Delete FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt

Deleted the ApprovalTests/FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt successfully!

* Revert "Delete FunctionCallTemplateTests.TestFunctionCallTemplate.approved.txt"

This reverts commit 7a6ea9cf0d5831ba7a5c445a7f9b64da713c600d.

---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-07-05 23:10:58 +00:00
Shaun
0a82b3eb76
fix: support openai service account apikey format (#3078) 2024-07-05 16:59:58 +00:00
Media
97b8e119d9
Update AutoTX Link on Gallery.json (#3082) 2024-07-04 18:26:47 +00:00
William W Wang
f211994331
Update azure_cosmos_db.md (#3043) v0.2.32 2024-07-04 15:16:29 +00:00
Qingyun Wu
0655b4341b
bump version (#3073) 2024-07-04 05:09:22 +00:00
HRUSHIKESH DOKALA
b4a3f263b0
Cohere Client (#3004)
* initial setup for cohere client

* client update

* changes: ClintType added to the utils

* Revert "changes: ClintType added to the utils"

This reverts commit 80d61552287f2d2eff50b4c0f1a4adfd97233aa3.

* Message conversion to Cohere, Parameter handling, cost calculation, streaming, tool calling

* Changed Groq references.

* minor fix

* tests added

* ref fix

* added in the workflows

* Fixed bug on non-streaming text generation

* fix: formatting

* Support Cohere rule for last message not USER when tool_results exist

* Added Cohere to documentation

* fixed client.py merge, removed unnecessary comments in groq.py, updated Cohere documentation, added Groq documentation

* log: ignored params

* update: custom exception added

---------

Co-authored-by: Mark Sze <mark@sze.family>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-07-03 14:33:03 +00:00
F. Hinkelmann
8133b7de22
Fix simple typo in chat-termination.ipynb (#3050) 2024-07-03 02:26:07 +00:00
Mark Sze
fbf24a5f6f
Blog post for enhanced non-OpenAI model support (#2965)
* Blogpost for enhanced non-OpenAI model support

* update: quickstart with simple conversation

* update: authors details

* Added upfront text

* Added function calling, refined text. Added chess for alt-models notebook, updated examples listing.

* Added Groq to blog

* Removed acknowledgements

---------

Co-authored-by: Hk669 <hrushi669@gmail.com>
Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-02 19:28:24 +00:00
Qingyun Wu
3f1be8abcb
update readme (#3057)
* update readme

* Update README.md

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>

* add notion link

---------

Co-authored-by: HRUSHIKESH DOKALA <96101829+Hk669@users.noreply.github.com>
2024-07-02 17:49:58 +00:00
F. Hinkelmann
8e66590a1e
Fix simple typos in human-in-the-loop.ipynb (#3051) 2024-07-02 16:25:06 +00:00
Li Jiang
62792478a4
Update qdrant dependency (#3064)
* Update qdrant dependency

* Update qdrant dependency
2024-07-02 16:00:31 +00:00
Li Jiang
8c56cc7d80
Fix llama_index tests (#3063) 2024-07-02 13:55:32 +00:00
Xiaoyun Zhang
66e50618bd
[.Net] Fix #3045 (#3047)
* make IStreamingMessage obsolete

* update final reply message
2024-07-01 16:52:57 +00:00
David Luong
80ecbf900c
[.Net] Support tools for AnthropicClient and AnthropicAgent (#2944)
* Squash commits : support anthropic tools

* Support tool_choice

* Remove reference from TypeSafeFunctionCallCodeSnippet.cs and add own function in test proj
2024-06-30 23:21:34 +00:00
Julia Kiseleva
e743d4d963
Update README.md (#3025)
adding links to blogposts to increase the clarity
2024-06-30 22:00:13 +00:00
Xiaoyun Zhang
b8a47a8d42
[.Net] fix #3014 by adding local model function call in dotnet website (#3044)
* add instruction in ollama-litellm function call example

* add tutorial

* fix tests
2024-06-30 18:43:22 +00:00
Mark Sze
23c1dec206
Groq Client (#3003)
* Groq Client Class - main class and setup, except tests

* Change pricing per K, added tests

* Streaming support, including with tool calling

* Used Groq retries instead of loop, thanks Gal-Gilor!

* Fixed bug when using logging.

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
2024-06-28 05:58:42 +00:00
HRUSHIKESH DOKALA
55cc542bcf
fix log_function_use warning (#3018) 2024-06-28 03:57:04 +00:00
William W Wang
5fd2609191
Create azure_cosmos_db in ecosystems.md (#2371)
* Create azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md

* Update azure_cosmos_db.md
2024-06-27 23:34:10 +00:00
Xiaoyun Zhang
57ec13c2eb
[.Net] add sample on how to make function call using lite llm and ollama Plus move ollama openai sample to AutoGen.OpenAI.Sample project (#3015)
* add sample

* Update Connect_To_Ollama.cs

* Update Connect_To_Ollama.cs
2024-06-26 15:33:28 +00:00
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