Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFact
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFact
- 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
-
#query ⇒ String
Query that is used to retrieve this fact.
-
#summary ⇒ String
If present, the summary/snippet of the fact.
-
#title ⇒ String
If present, it refers to the title of this fact.
-
#url ⇒ String
If present, this URL links to the webpage of the fact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiNlLlmProtoServiceFact
constructor
A new instance of CloudAiNlLlmProtoServiceFact.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#query ⇒ String
Query that is used to retrieve this fact.
Corresponds to the JSON property query
613 614 615 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 613 def query @query end |
#summary ⇒ String
If present, the summary/snippet of the fact.
Corresponds to the JSON property summary
618 619 620 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 618 def summary @summary end |
#title ⇒ String
If present, it refers to the title of this fact.
Corresponds to the JSON property title
623 624 625 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 623 def title @title end |
#url ⇒ String
If present, this URL links to the webpage of the fact.
Corresponds to the JSON property url
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 |