14 Commits

Author SHA1 Message Date
cedricmendelin
b37c192424
Dotnet: Add modelServiceId support to SemanticKernelAgent (#5422)
The `SemanticKernelAgent` class has been updated to include an optional
`modelServiceId` parameter, allowing the specification of a service ID
for the model.

## Why are these changes needed?

Currently, `SemanticKernelAgent` uses the parameterless method for
resolving `IChatCompletionSerivce`. This will fail, when multiple models
are registered in the Kernel.

To support different models registered in the Kernel, I adopted the
resolving of the `IChatCompletionSerivce` within the
`SemanticKernelAgent` with an optional parameter. When it is not set, I
resolve the default instance, otherwise, I use the optional parameter as
a servide id for resolving the `IChatCompletionSerivce` service.

## Related issue number



## Checks

- [x] I've included any doc changes needed for
https://microsoft.github.io/autogen/. See
https://microsoft.github.io/autogen/docs/Contribute#documentation to
build and test documentation locally.
- [x] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [x] I've made sure all auto checks have passed.

---------

Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
2025-02-25 20:39:45 +00:00
Griffin Bassman
9af6883fbe
fix: dotnet test CI and standardize test categories (#5286)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2025-02-03 11:49:08 -05:00
Xiaoyun Zhang
6bea055b26
[.Net] Add a generic IHandle interface so AgentRuntime doesn't need to deal with typed handler (#3985)
* add IHandle for object type

* rename handle -> handleObject

* remove duplicate file header setting

* update

* remove AgentId

* fix format
2024-10-30 11:53:37 -07:00
Xiaoyun Zhang
0560bdd645
[.Net] Update OpenAI, semantic kernel to latest version (#3792)
* update OpenAI, semantic kernel to latest version

* fix build error

* update

* update release note
2024-10-15 07:23:33 -07:00
Xiaoyun Zhang
9ba14ee15b
Fix dotnet test and reformat dotnet code (#3603)
* fix test

* install aspire workload

* format

* fix build error

* fix format

* format
2024-10-02 14:42:27 -04:00
Xiaoyun Zhang
18d52f606a
Merge dotnet conflict (#3) 2024-09-30 19:32:48 -04: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
155da15734
[.Net] fix #3203 (#3204)
* add net6 & net8

* update

* add tools and stop sequence
2024-07-25 16:15:55 +00:00
Xiaoyun Zhang
96146aa9b6
[.Net] update sk version from 1.10.0 to 1.15.1 (#3131)
* update sk version

* fix sk test error
2024-07-15 16:51:05 +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
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
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
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