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.



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

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

#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



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

def 
  @debug_metadata
end

#prompt_feedbackGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback

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



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

def prompt_feedback
  @prompt_feedback
end

#reporting_metricsGoogle::Apis::AiplatformV1::IntelligenceCloudAutomlXpsReportingMetrics

Billable prediction metrics. Corresponds to the JSON property reportingMetrics



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

def reporting_metrics
  @reporting_metrics
end

#usage_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata

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



669
670
671
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 669

def 
  @usage_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



676
677
678
679
680
681
682
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 676

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