Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceGenerateMultiModalResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiNlLlmProtoServiceGenerateMultiModalResponse

Returns a new instance of CloudAiNlLlmProtoServiceGenerateMultiModalResponse.



665
666
667
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 665

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#candidatesArray<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCandidate>

Possible candidate responses to the conversation up until this point. Corresponds to the JSON property candidates



648
649
650
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 648

def candidates
  @candidates
end

#prompt_feedbackGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback

Content filter results for a prompt sent in the request. Corresponds to the JSON property promptFeedback



653
654
655
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 653

def prompt_feedback
  @prompt_feedback
end

#reporting_metricsGoogle::Apis::AiplatformV1::IntelligenceCloudAutomlXpsReportingMetrics

Billable prediction metrics. Corresponds to the JSON property reportingMetrics



658
659
660
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 658

def reporting_metrics
  @reporting_metrics
end

#usage_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata

Usage metadata about response(s). Corresponds to the JSON property usageMetadata



663
664
665
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 663

def 
  @usage_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



670
671
672
673
674
675
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 670

def update!(**args)
  @candidates = args[:candidates] if args.key?(:candidates)
  @prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
  @reporting_metrics = args[:reporting_metrics] if args.key?(:reporting_metrics)
  @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
end