GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponse (google_api_ai_platform v0.27.0)

View Source

Response message for [PredictionService.GenerateContent].

Attributes

  • candidates (type: list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Candidate.t), default: nil) - Output only. Generated candidates.
  • createTime (type: DateTime.t, default: nil) - Output only. Timestamp when the request is made to the server.
  • 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.
  • responseId (type: String.t, default: nil) - Output only. response_id is used to identify each response. It is the encoding of the event_id.
  • 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

t()

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponse{
    candidates:
      [GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Candidate.t()] | nil,
    createTime: DateTime.t() | nil,
    modelVersion: String.t() | nil,
    promptFeedback:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback.t()
      | nil,
    responseId: String.t() | nil,
    usageMetadata:
      GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata.t()
      | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.