View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponse (google_api_ai_platform v0.13.0)

Response message for [PredictionService.GenerateContent].

Attributes

  • candidates (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Candidate.t), default: nil) - Output only. Generated candidates.
  • 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

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.