Table of Contents

Class GoogleGeminiClient

Namespace
AutoGen.Gemini
Assembly
AutoGen.Gemini.dll
public class GoogleGeminiClient : IGeminiClient
Inheritance
GoogleGeminiClient
Implements
Inherited Members

Constructors

GoogleGeminiClient(HttpClient, string)

public GoogleGeminiClient(HttpClient httpClient, string apiKey)

Parameters

httpClient HttpClient
apiKey string

GoogleGeminiClient(string)

public GoogleGeminiClient(string apiKey)

Parameters

apiKey string

Methods

GenerateContentAsync(GenerateContentRequest, CancellationToken)

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

Parameters

request GenerateContentRequest
cancellationToken CancellationToken

Returns

Task<GenerateContentResponse>

GenerateContentStreamAsync(GenerateContentRequest)

public IAsyncEnumerable<GenerateContentResponse> GenerateContentStreamAsync(GenerateContentRequest request)

Parameters

request GenerateContentRequest

Returns

IAsyncEnumerable<GenerateContentResponse>