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.



722
723
724
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 722

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



694
695
696
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 694

def candidates
  @candidates
end

#debug_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServiceMessageMetadata

Debug information containing message metadata. Clients should not consume this field, and this is only populated for Flow Runner path. Corresponds to the JSON property debugMetadata



700
701
702
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 700

def 
  @debug_metadata
end

#factsArray<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFact>

External facts retrieved for factuality/grounding. Corresponds to the JSON property facts



705
706
707
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 705

def facts
  @facts
end

#prompt_feedbackGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback

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



710
711
712
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 710

def prompt_feedback
  @prompt_feedback
end

#reporting_metricsGoogle::Apis::AiplatformV1::IntelligenceCloudAutomlXpsReportingMetrics

Billable prediction metrics. Corresponds to the JSON property reportingMetrics



715
716
717
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 715

def reporting_metrics
  @reporting_metrics
end

#usage_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata

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



720
721
722
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 720

def 
  @usage_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



727
728
729
730
731
732
733
734
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 727

def update!(**args)
  @candidates = args[:candidates] if args.key?(:candidates)
  @debug_metadata = args[:debug_metadata] if args.key?(:debug_metadata)
  @facts = args[:facts] if args.key?(:facts)
  @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