Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::GenerateContentResponse (v0.60.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::GenerateContentResponse.

Response message for [PredictionService.GenerateContent].

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#candidates

def candidates() -> ::Array<::Google::Cloud::AIPlatform::V1::Candidate>
Returns

#model_version

def model_version() -> ::String
Returns
  • (::String) — Output only. The model version used to generate the response.

#prompt_feedback

def prompt_feedback() -> ::Google::Cloud::AIPlatform::V1::GenerateContentResponse::PromptFeedback
Returns

#usage_metadata

def usage_metadata() -> ::Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata
Returns

#usage_metadata=

def usage_metadata=(value) -> ::Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata
Parameter
Returns