Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFact

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

Overview

A condense version of WorldFact (assistant/boq/lamda/factuality/proto/ factuality.proto) to propagate the essential information about the fact used in factuality to the upstream caller.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiNlLlmProtoServiceFact

Returns a new instance of CloudAiNlLlmProtoServiceFact.



630
631
632
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 630

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

Instance Attribute Details

#queryString

Query that is used to retrieve this fact. Corresponds to the JSON property query

Returns:

  • (String)


613
614
615
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 613

def query
  @query
end

#summaryString

If present, the summary/snippet of the fact. Corresponds to the JSON property summary

Returns:

  • (String)


618
619
620
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 618

def summary
  @summary
end

#titleString

If present, it refers to the title of this fact. Corresponds to the JSON property title

Returns:

  • (String)


623
624
625
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 623

def title
  @title
end

#urlString

If present, this URL links to the webpage of the fact. Corresponds to the JSON property url

Returns:

  • (String)


628
629
630
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 628

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



635
636
637
638
639
640
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 635

def update!(**args)
  @query = args[:query] if args.key?(:query)
  @summary = args[:summary] if args.key?(:summary)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end