Class GenerateContentResponse (1.48.0)

GenerateContentResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for [PredictionService.GenerateContent].

Attributes

NameDescription
candidates MutableSequence[google.cloud.aiplatform_v1.types.Candidate]
Output only. Generated candidates.
prompt_feedback google.cloud.aiplatform_v1.types.GenerateContentResponse.PromptFeedback
Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations.
usage_metadata google.cloud.aiplatform_v1.types.GenerateContentResponse.UsageMetadata
Usage metadata about the response(s).

Classes

PromptFeedback

PromptFeedback(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Content filter results for a prompt sent in the request.

UsageMetadata

UsageMetadata(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Usage metadata about response(s).

Methods

GenerateContentResponse

GenerateContentResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for [PredictionService.GenerateContent].