GenerativeModelGenerateObjectAsyncT(GenerateContentRequest, CancellationToken) Method
Generates content asynchronously using JSON mode based on the given input parameters and converts the resulting JSON into a C# object of type T.
Some of the complex data types are not supported such as Dictionary. So make sure to avoid these.