GenerateObjectResponse

A GenerateContentResponse augmented with class information.

Use getObject to parse the response and extract the strongly typed object.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun getObject(candidateIndex: Int = 0): T?

Deserialize a candidate (default first) and convert it into the type associated with this response.