GenerateContentResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)Response message for [PredictionService.GenerateContent].
Attributes |
|
|---|---|
| Name | Description |
candidates |
MutableSequence[google.cloud.aiplatform_v1.types.Candidate]
Output only. Generated candidates. |
model_version |
str
Output only. The model version used to generate the response. |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. Timestamp when the request is made to the server. |
response_id |
str
Output only. response_id is used to identify each response. It is the encoding of the event_id. |
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].