Table of Contents

Interface IGeminiClient

Namespace
AutoGen.Gemini
Assembly
AutoGen.Gemini.dll
public interface IGeminiClient

Methods

GenerateContentAsync(GenerateContentRequest, CancellationToken)

Task<GenerateContentResponse> GenerateContentAsync(GenerateContentRequest request, CancellationToken cancellationToken = default)

Parameters

request GenerateContentRequest
cancellationToken CancellationToken

Returns

Task<GenerateContentResponse>

GenerateContentStreamAsync(GenerateContentRequest)

IAsyncEnumerable<GenerateContentResponse> GenerateContentStreamAsync(GenerateContentRequest request)

Parameters

request GenerateContentRequest

Returns

IAsyncEnumerable<GenerateContentResponse>