GenerativeModelGenerateObjectAsync Method

Overload List

GenerateObjectAsyncT(GenerateContentRequest, CancellationToken) Generates content asynchronously using JSON mode based on the given input parameters and converts the resulting JSON into a C# object of type T.
GenerateObjectAsyncT(IEnumerablePart, CancellationToken) Generates content asynchronously using JSON mode based on the specified content generation request parts and converts the resulting JSON into a C# object of type T.
GenerateObjectAsyncT(String, CancellationToken) Generates content asynchronously using JSON mode based on the specified text input prompt and converts the resulting JSON into a C# object of type T.

See Also