View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponse (google_api_ai_platform v0.24.0)
Response message for [PredictionService.GenerateContent].
Attributes
-
candidates(type:list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Candidate.t), default:nil) - Output only. Generated candidates. -
modelVersion(type:String.t, default:nil) - Output only. The model version used to generate the response. -
promptFeedback(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback.t, default:nil) - 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. -
usageMetadata(type:GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.t, default:nil) - Usage metadata about the response(s).
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponse{ candidates: [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Candidate.t()] | nil, modelVersion: String.t() | nil, promptFeedback: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback.t() | nil, usageMetadata: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.t() | nil }