39 Commits

Author SHA1 Message Date
Xiaoyun Zhang
e76c39e52d
[.Net][AutoGen.OpenAI] Allow nullable system message, temperature and max token to support o1-preview model (#3524)
* add connect to o1 example

* Update Connect_To_OpenAI_o1_preview.cs
2024-09-13 16:59:58 +00:00
Xiaoyun Zhang
084532e274
[.Net] add output schema to generateReplyOption (#3450)
* add output schema

* fix format
2024-08-30 15:36:20 +00:00
Xiaoyun Zhang
4193cea267
[.Net] Add AutoGen.OpenAI package that uses OpenAI v2 SDK (#3402)
* udpate

* add sample to connect to azure oai

* update comment

* ping to beta5

* add openai tests

* format code

* add structural output example

* update comment

* fix test

* resolve comments

* fix format issue

* update sk version
2024-08-27 21:37:47 +00:00
Xiaoyun Zhang
eb160d9d4a
[.Net] Rename AutoGen.OpenAI to AutoGen.OpenAI.V1 (#3358)
* fix build error

* rename AutoGen.OpenAI to AutoGen.OpenAI.V1
2024-08-21 20:45:15 +00:00
Xiaoyun Zhang
00aed2e3ca
[.Net] Enable step-by-step execution for two-agent conversation SendAsync API (#3360)
* return iasync iterator in sendasync function

* fix build error
2024-08-20 05:34:04 +00:00
David Luong
0a2b667f3c
[.NET] Add cache control to Anthropic Client (#3372)
* Add cache control to anthropic client and write unit test & exampel

* PR comments

* Fix import ordering for build

* Fix import orderings

---------

Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2024-08-18 16:14:51 +00:00
Chaitanya Belwal
736d5e72bc
Updated Program.cs for Autogen.BasicSample to give a menu driven window making it easier to run variou Agent config. (#3346) 2024-08-13 17:04:04 +00:00
Xiaoyun Zhang
f49ed29b4e
[.Net][AutoGen.DotnetInteractive] add DotnetInteractiveStdioConnector (#3337)
* add DotnetInteractiveStdioCOnector

* update

* update

* comment out DotnetInteractive test

* add header

* update
2024-08-10 01:53:48 +00:00
Xiaoyun Zhang
5732b3e766
[.Net] add DotnetInteractiveKernelBuilder to AutoGen.DotnetInteractive (#3317)
* add DotnetInteractiveBuilder

* update

* fix workflow

* add pwsh test

* update

* add extract code extension

* update workflow
2024-08-08 17:49:58 +00:00
Xiaoyun Zhang
2cfaf73ad8
[.Net] add SendAsync api to iterate group chat step by step (#3214)
* add SendAsync api and tests

* update example to use new sendAsync API
2024-07-29 16:32:45 +00:00
Xiaoyun Zhang
155da15734
[.Net] fix #3203 (#3204)
* add net6 & net8

* update

* add tools and stop sequence
2024-07-25 16:15:55 +00:00
Xiaoyun Zhang
1daf852f86
rename Service -> WebAPI (#3177) 2024-07-22 16:44:12 +00:00
Xiaoyun Zhang
d073678154
add streaming tool call example (#3167) 2024-07-19 16:36:04 +00:00
Xiaoyun Zhang
970c1961dd
[.Net] update dotnet-ci and dotnet-release to use 8.0.x version when setting up .NET. And enable format check (#3136)
* use 8.0.x versin

* enable format check

* change file header

* apply code format

* add instructions in ci to fix format error

* add comment back
2024-07-15 19:33:10 +00:00
Xiaoyun Zhang
7205ccc3b9
fix build and tests (#3134) 2024-07-15 19:20:22 +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
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
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
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
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
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
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
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
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
Xiaoyun Zhang
a16b307dc0
[.Net] Add Goolge gemini (#2868)
* update

* add vertex gemini test

* remove DTO

* add test for vertexGeminiAgent

* update test name

* update IGeminiClient interface

* add test for streaming

* add message connector

* add gemini message extension

* add tests

* update

* add gemnini sample

* update examples

* add test for iamge

* fix test

* add more tests

* add streaming message test

* add comment

* remove unused json

* implement google gemini client

* update

* fix comment
2024-06-10 17:31:45 +00:00
Xiaoyun Zhang
7f635b4309
[.Net] Update website for AutoGen.SemanticKernel and AutoGen.Ollama (#2814)
* update sk documents

* add ollama doc
2024-05-28 21:55:40 +00:00
David Luong
4fec246342
Introduce AnthropicClient and AnthropicClientAgent (#2769)
* Reference project

Revert "Set up the Agent. Basic Example set up, boilerplate for connector, ran into signing issue."

This reverts commit 0afe04f2

End to end working anthropic agent + unit tests

Set up the Agent. Basic Example set up, boilerplate for connector, ran into signing issue.

* Add pragma warning

* - Remove Message type
- tabbing fix white space in csproj
- Remove redundant inheritance
- Edit Anthropic.Tests' rootnamespace
- Create AutoGen.Anthropic.Samples

* short-cut agent extension method

* Pass system message in the constructor and throw if there's system message in Imessages

---------

Co-authored-by: luongdavid <luongdavid@microsoft.com>
2024-05-24 16:37:16 +00:00
Xiaoyun Zhang
702c010d77
[.Net] add ollama-sample and adds more tests (#2776)
* add ollama-sample and adds more tests

* Update AutoGen.Ollama.Sample.csproj
2024-05-24 04:14:29 +00:00
Xiaoyun Zhang
8d55334e4d
[.Net] add AutoGen.SemanticKernel.Sample project (#2774)
* add AutoGen.SemanticKernel.Sample

* revert change
2024-05-24 01:53:22 +00:00
Xiaoyun Zhang
90ca2ca64b
[.Net] Mark Message as obsolete and add ToolCallAggregateMessage type (#2716)
* make Message obsolete

* add ToolCallAggregateMessage

* update message.md

* address comment

* fix tests

* set round to 1 temporarily

* revert change

* fix test

* fix test
2024-05-21 05:48:19 +00:00
Xiaoyun Zhang
3e6f073373
[.Net] fix #2722 (#2723)
* fix bug and add tests

* update
2024-05-21 03:19:07 +00:00
Xiaoyun Zhang
374270f9c7
[.Net] Add KernelPluginMiddleware in AutoGen.SemanticKernel (#2595)
* add kernel function middleware

* update

* fix format

* fix build error
2024-05-09 22:36:20 +00:00
David Luong
b529fe21a3
[.Net]: Introduce ChatCompletionAgent to AutoGen.SemanticKernel package (#2584)
* WIP add SKAgent to proj

* Fix Unit test

* Remove accidental coommit

* Add version props

* Revert Kludge test changes

* PR comments : executionSettings and use / upgrade SemanticKernelExperimentalVersion

* Add back deleted api and constructor, mark as Obsolete

* PR feedback : Introduce SemanticKernelChatCompletionAgent. Add unit tests and refactor semanticKernelChatMessageContentConnector to be SkSequentialChatMessageContentConnector.cs

* Revert SkSequentialChatMessageContentConnector

* PR comments, remove systemMessage in SemanticKernelChatCompletionAgent

* Fix formatting

* Fix bad merge

* Revert "Fix bad merge"

This reverts commit a189ad9f42b443d78c0371e0725bc877309a93ac.

* Remove accidental commit

---------

Co-authored-by: luongdavid <luongdavid@microsoft.com>
2024-05-09 03:50:36 +00:00
Xiaoyun Zhang
5be103ab6b
[.Net] Add an example to show how to connect to third party OpenAI API endpoint + upgrade Azure.AI.OpenAI package (#2619)
* update

* update

* add blog
2024-05-08 23:56:16 +00:00
Xiaoyun Zhang
e878be55a3
[.Net] refactor over streaming version api (#2461)
* update

* update

* fix comment
2024-05-05 14:51:00 +00:00
David Luong
f4a07ff0ed
[.Net] Support raw-data in ImageMessage (#2552)
* update

* add sample project

* revert notebook change back

* update

* update interactive version

* add nuget package

* refactor Message

* update example

* add azure nightly build pipeline

* Set up CI with Azure Pipelines

[skip ci]

* Update nightly-build.yml for Azure Pipelines

* add dotnet interactive package

* add dotnet interactive package

* update pipeline

* add nuget feed back

* remove dotnet-tool feed

* remove dotnet-tool feed comment

* update pipeline

* update build name

* Update nightly-build.yml

* Delete .github/workflows/dotnet-ci.yml

* update

* add working_dir to use step

* add initateChat api

* update oai package

* Update dotnet-build.yml

* Update dotnet-run-openai-test-and-notebooks.yml

* update build workflow

* update build workflow

* update nuget feed

* update nuget feed

* update aoai and sk version

* Update InteractiveService.cs

* add support for GPT 4V

* add DalleAndGPT4V example

* update example

* add user proxy agent

* add readme

* bump version

* update example

* add dotnet interactive hook

* update

* udpate tests

* add website

* update index.md

* add docs

* update doc

* move sk dependency out of core package

* udpate doc

* Update Use-function-call.md

* add type safe function call document

* update doc

* update doc

* add dock

* Update Use-function-call.md

* add GenerateReplyOptions

* remove IChatLLM

* update version

* update doc

* update website

* add sample

* fix link

* add middleware agent

* clean up doc

* bump version

* update doc

* update

* add Other Language

* remove warnings

* add sign.props

* add sign step

* fix pipelien

* auth

* real sign

* disable PR trigger

* update

* disable PR trigger

* use microbuild machine

* update build pipeline to add publish to internal feed

* add internal feed

* fix build pipeline

* add dotnet prefix

* update ci

* add build number

* update run number

* update source

* update token

* update

* remove adding source

* add publish to github package

* try again

* try again

* ask for write pacakge

* disable package when branch is not main

* update

* implement streaming agent

* add test for streaming function call

* update

* fix #1588

* enable PR check for dotnet branch

* add website readme

* only publish to dotnet feed when pushing to dotnet branch

* remove openai-test-and-notebooks workflow

* update readme

* update readme

* update workflow

* update getting-start

* upgrade test and sample proejct to use .net 8

* fix global.json format && make loadFromConfig API internal only before implementing

* update

* add support for LM studio

* add doc

* Update README.md

* add push and workflow_dispatch trigger

* disable PR for main

* add dotnet env

* Update Installation.md

* add nuget

* refer to newtonsoft 13

* update branch to dotnet in docfx

* Update Installation.md

* pull out HumanInputMiddleware and FunctionCallMiddleware

* fix tests

* add link to sample folder

* refactor message

* refactor over IMessage

* add more tests

* add more test

* fix build error

* rename header

* add semantic kernel project

* update sk example

* update dotnet version

* add LMStudio function call example

* rename LLaMAFunctin

* remove dotnet run openai test and notebook workflow

* add FunctionContract and test

* update doc

* add documents

* add workflow

* update

* update sample

* fix warning in test

* reult length can be less then maximumOutputToKeep (#1804)

* merge with main

* add option to retrieve inner agent and middlewares from MiddlewareAgent

* update doc

* adjust namespace

* update readme

* fix test

* use IMessage

* more updates

* update

* fix test

* add comments

* use FunctionContract to replace FunctionDefinition

* move AutoGen contrac to AutoGen.Core

* update installation

* refactor streamingAgent by adding StreamingMessage type

* update sample

* update samples

* update

* update

* add test

* fix test

* bump version

* add openaichat test

* update

* Update Example03_Agent_FunctionCall.cs

* [.Net] improve docs (#1862)

* add doc

* add doc

* add doc

* add doc

* add doc

* add doc

* update

* fix test error

* fix some error

* fix test

* fix test

* add more tests

* edits

---------

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

* [.Net] Add fill form example (#1911)

* add form filler example

* update

* fix ci error

* [.Net] Add using AutoGen.Core in source generator (#1983)

* fix using namespace bug in source generator

* remove using in sourcegenerator test

* disable PR test

* Add .idea to .gitignore (#1988)

* [.Net] publish to nuget.org feed (#1987)

* publish to nuget

* update ci

* update dotnet-release

* update release pipeline

* add source

* remove empty symbol package

* update pipeline

* remove tag

* update installation guide

* [.Net] Rename some classes && APIs based on doc review (#1980)

* rename sequential group chat to round robin group chat

* rename to sendInstruction

* rename workflow to graph

* rename some api

* bump version

* move Graph to GroupChat folder

* rename fill application example

* [.Net] Improve package description (#2161)

* add discord link and update package description

* Update getting-start.md

* [.Net] Fix document comment from the most recent AutoGen.Net engineer sync (#2231)

* update

* rename RegisterPrintMessageHook to RegisterPrintMessage

* update website

* update update.md

* fix link error

* [.Net] Enable JsonMode and deterministic output in AutoGen.OpenAI OpenAIChatAgent (#2347)

* update openai version && add sample for json output

* add example in web

* update update.md

* update image url

* [.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

* track (#2471)

* [.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

* Update dotnet-release.yml (#2488)

* update

* revert gitattributes

* WIP : Binary ImageMessage

* WIP : Able to pass unit test

* Add example, cover more usages

* Rename File

---------

Co-authored-by: XiaoYun Zhang <xiaoyuz@microsoft.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
Co-authored-by: mhensen <mh@webvize.nl>
Co-authored-by: ekzhu <ekzhu@users.noreply.github.com>
Co-authored-by: Krzysztof Kasprowicz <60486987+Krzysztof318@users.noreply.github.com>
Co-authored-by: luongdavid <luongdavid@microsoft.com>
2024-05-02 01:30:42 +00:00
Xiaoyun Zhang
5e29ac84dc
[.Net] fix code ql for dotnet build && update trigger for dotnet workflow (#2529)
* fix formatting

* update dotnet build pipieline
2024-04-29 20:27:57 +00:00
Xiaoyun Zhang
600bd3f2fe
Bring Dotnet AutoGen (#924)
* update readme

* update

* update

* update

* update

* update

* update

* add sample project

* revert notebook change back

* update

* update interactive version

* add nuget package

* refactor Message

* update example

* add azure nightly build pipeline

* Set up CI with Azure Pipelines

[skip ci]

* Update nightly-build.yml for Azure Pipelines

* add dotnet interactive package

* add dotnet interactive package

* update pipeline

* add nuget feed back

* remove dotnet-tool feed

* remove dotnet-tool feed comment

* update pipeline

* update build name

* Update nightly-build.yml

* Delete .github/workflows/dotnet-ci.yml

* update

* add working_dir to use step

* add initateChat api

* update oai package

* Update dotnet-build.yml

* Update dotnet-run-openai-test-and-notebooks.yml

* update build workflow

* update build workflow

* update nuget feed

* update nuget feed

* update aoai and sk version

* Update InteractiveService.cs

* add support for GPT 4V

* add DalleAndGPT4V example

* update example

* add user proxy agent

* add readme

* bump version

* update example

* add dotnet interactive hook

* update

* udpate tests

* add website

* update index.md

* add docs

* update doc

* move sk dependency out of core package

* udpate doc

* Update Use-function-call.md

* add type safe function call document

* update doc

* update doc

* add dock

* Update Use-function-call.md

* add GenerateReplyOptions

* remove IChatLLM

* update version

* update doc

* update website

* add sample

* fix link

* add middleware agent

* clean up doc

* bump version

* update doc

* update

* add Other Language

* remove warnings

* add sign.props

* add sign step

* fix pipelien

* auth

* real sign

* disable PR trigger

* update

* disable PR trigger

* use microbuild machine

* update build pipeline to add publish to internal feed

* add internal feed

* fix build pipeline

* add dotnet prefix

* update ci

* add build number

* update run number

* update source

* update token

* update

* remove adding source

* add publish to github package

* try again

* try again

* ask for write pacakge

* disable package when branch is not main

* update

* implement streaming agent

* add test for streaming function call

* update

* fix #1588

* enable PR check for dotnet branch

* add website readme

* only publish to dotnet feed when pushing to dotnet branch

* remove openai-test-and-notebooks workflow

* update readme

* update readme

* update workflow

* update getting-start

* upgrade test and sample proejct to use .net 8

* fix global.json format && make loadFromConfig API internal only before implementing

* update

* add support for LM studio

* add doc

* Update README.md

* add push and workflow_dispatch trigger

* disable PR for main

* add dotnet env

* Update Installation.md

* add nuget

* refer to newtonsoft 13

* update branch to dotnet in docfx

* Update Installation.md

* pull out HumanInputMiddleware and FunctionCallMiddleware

* fix tests

* add link to sample folder

* refactor message

* refactor over IMessage

* add more tests

* add more test

* fix build error

* rename header

* add semantic kernel project

* update sk example

* update dotnet version

* add LMStudio function call example

* rename LLaMAFunctin

* remove dotnet run openai test and notebook workflow

* add FunctionContract and test

* update doc

* add documents

* add workflow

* update

* update sample

* fix warning in test

* reult length can be less then maximumOutputToKeep (#1804)

* merge with main

* add option to retrieve inner agent and middlewares from MiddlewareAgent

* update doc

* adjust namespace

* update readme

* fix test

* use IMessage

* more updates

* update

* fix test

* add comments

* use FunctionContract to replace FunctionDefinition

* move AutoGen contrac to AutoGen.Core

* update installation

* refactor streamingAgent by adding StreamingMessage type

* update sample

* update samples

* update

* update

* add test

* fix test

* bump version

* add openaichat test

* update

* Update Example03_Agent_FunctionCall.cs

* [.Net] improve docs (#1862)

* add doc

* add doc

* add doc

* add doc

* add doc

* add doc

* update

* fix test error

* fix some error

* fix test

* fix test

* add more tests

* edits

---------

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

* [.Net] Add fill form example (#1911)

* add form filler example

* update

* fix ci error

* [.Net] Add using AutoGen.Core in source generator (#1983)

* fix using namespace bug in source generator

* remove using in sourcegenerator test

* disable PR test

* Add .idea to .gitignore (#1988)

* [.Net] publish to nuget.org feed (#1987)

* publish to nuget

* update ci

* update dotnet-release

* update release pipeline

* add source

* remove empty symbol package

* update pipeline

* remove tag

* update installation guide

* [.Net] Rename some classes && APIs based on doc review (#1980)

* rename sequential group chat to round robin group chat

* rename to sendInstruction

* rename workflow to graph

* rename some api

* bump version

* move Graph to GroupChat folder

* rename fill application example

* [.Net] Improve package description (#2161)

* add discord link and update package description

* Update getting-start.md

* [.Net] Fix document comment from the most recent AutoGen.Net engineer sync (#2231)

* update

* rename RegisterPrintMessageHook to RegisterPrintMessage

* update website

* update update.md

* fix link error

* [.Net] Enable JsonMode and deterministic output in AutoGen.OpenAI OpenAIChatAgent (#2347)

* update openai version && add sample for json output

* add example in web

* update update.md

* update image url

* [.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

* track (#2471)

* [.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

* Update dotnet-release.yml (#2488)

* update

* revert gitattributes

---------

Co-authored-by: mhensen <mh@webvize.nl>
Co-authored-by: ekzhu <ekzhu@users.noreply.github.com>
Co-authored-by: Krzysztof Kasprowicz <60486987+Krzysztof318@users.noreply.github.com>
2024-04-26 16:21:46 +00:00