2024-10-02 11:42:27 -07:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
2024-06-10 10:31:45 -07:00
|
|
|
// 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();
|
|
|
|
}
|
|
|
|
}
|