Generates content asynchronously using JSON mode based on the given input parameters and converts the resulting JSON into a C# object of type T.
Definition
Namespace:GenerativeAI Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
publicvirtualTask<GenerateContentResponse> GenerateContentAsync<T>(
GenerateContentRequestrequest,
CancellationTokencancellationToken = default
)
where T : class