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.



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

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)


607
608
609
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 607

def query
  @query
end

#summaryString

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

Returns:

  • (String)


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

def summary
  @summary
end

#titleString

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

Returns:

  • (String)


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

def title
  @title
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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