Candidate

A Candidate represents a single response generated by the model for a given request.

Properties

Link copied to clipboard

Metadata about the sources used to generate this content.

Link copied to clipboard

The actual content generated by the model.

Link copied to clipboard

The optional message associated with the finish reason, providing more details.

Link copied to clipboard

The reason the model stopped generating content, if it exists.

Link copied to clipboard

Metadata returned to the client when the model grounds its response.

Link copied to clipboard

A list of SafetyRatings describing the generated content.

Link copied to clipboard

Metadata returned to the client when the UrlContext tool is enabled.