Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::GenerateContentResponse (v0.48.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

#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