GenerateContentResponse

A response from the model.

Properties

Link copied to clipboard

The list of Candidate responses generated by the model.

Link copied to clipboard

Convenience field to list all the FunctionCallParts in the response.

Link copied to clipboard

The source of the inference for this response.

Link copied to clipboard

Convenience field representing all the InlineDataParts in the first candidate.

Link copied to clipboard
Link copied to clipboard

Feedback about the prompt send to the model to generate this response. When streaming, it's only populated in the first response.

Link copied to clipboard
val text: String?

Convenience field representing all the text parts in the response as a single string.

Link copied to clipboard

Convenience field representing all the text parts in the response that are marked as thoughts as a single string, if they exist.

Link copied to clipboard

Information about the number of tokens in the prompt and in the response.