Class GoogleGeminiClient
public class GoogleGeminiClient : IGeminiClient
- Inheritance
-
GoogleGeminiClient
- Implements
- Inherited Members
Constructors
GoogleGeminiClient(HttpClient, string)
public GoogleGeminiClient(HttpClient httpClient, string apiKey)
Parameters
httpClient
HttpClientapiKey
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
GenerateContentRequestcancellationToken
CancellationToken
Returns
GenerateContentStreamAsync(GenerateContentRequest)
public IAsyncEnumerable<GenerateContentResponse> GenerateContentStreamAsync(GenerateContentRequest request)
Parameters
request
GenerateContentRequest