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

29 lines
687 B
C#

// Copyright (c) Microsoft Corporation. All rights reserved.
// SampleTests.cs
using AutoGen.Gemini.Sample;
using AutoGen.Tests;
namespace AutoGen.Gemini.Tests;
public class SampleTests
{
[ApiKeyFact("GCP_VERTEX_PROJECT_ID")]
public async Task TestChatWithVertexGeminiAsync()
{
await Chat_With_Vertex_Gemini.RunAsync();
}
[ApiKeyFact("GCP_VERTEX_PROJECT_ID")]
public async Task TestFunctionCallWithGeminiAsync()
{
await Function_Call_With_Gemini.RunAsync();
}
[ApiKeyFact("GCP_VERTEX_PROJECT_ID")]
public async Task TestImageChatWithVertexGeminiAsync()
{
await Image_Chat_With_Vertex_Gemini.RunAsync();
}
}