Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
Data store connection feature output signals. Might be only partially field if processing stop before the final answer. Reasons for this can be, but are not limited to: empty UCS search results, positive RAI check outcome, grounding failure, ...
Instance Attribute Summary collapse
-
#answer ⇒ String
Optional.
-
#answer_generation_model_call_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals
Diagnostic info related to the answer generation model call.
-
#answer_parts ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart>
Optional.
-
#cited_snippets ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet>
Optional.
-
#grounding_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals
Grounding signals.
-
#rewriter_model_call_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals
Diagnostic info related to the rewriter model call.
-
#rewritten_query ⇒ String
Optional.
-
#safety_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals
Safety check results.
-
#search_snippets ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals
constructor
A new instance of GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals
Returns a new instance of GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals.
5488 5489 5490 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5488 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
Optional. The final compiled answer.
Corresponds to the JSON property answer
5444 5445 5446 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5444 def answer @answer end |
#answer_generation_model_call_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals
Diagnostic info related to the answer generation model call.
Corresponds to the JSON property answerGenerationModelCallSignals
5449 5450 5451 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5449 def answer_generation_model_call_signals @answer_generation_model_call_signals end |
#answer_parts ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart>
Optional. Answer parts with relevant citations. Concatenation of texts should
add up the answer
(not counting whitespaces).
Corresponds to the JSON property answerParts
5455 5456 5457 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5455 def answer_parts @answer_parts end |
#cited_snippets ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet>
Optional. Snippets cited by the answer generation model from the most to least
relevant.
Corresponds to the JSON property citedSnippets
5461 5462 5463 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5461 def cited_snippets @cited_snippets end |
#grounding_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals
Grounding signals.
Corresponds to the JSON property groundingSignals
5466 5467 5468 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5466 def grounding_signals @grounding_signals end |
#rewriter_model_call_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals
Diagnostic info related to the rewriter model call.
Corresponds to the JSON property rewriterModelCallSignals
5471 5472 5473 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5471 def rewriter_model_call_signals @rewriter_model_call_signals end |
#rewritten_query ⇒ String
Optional. Rewritten string query used for search.
Corresponds to the JSON property rewrittenQuery
5476 5477 5478 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5476 def rewritten_query @rewritten_query end |
#safety_signals ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals
Safety check results.
Corresponds to the JSON property safetySignals
5481 5482 5483 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5481 def safety_signals @safety_signals end |
#search_snippets ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet>
Optional. Search snippets included in the answer generation prompt.
Corresponds to the JSON property searchSnippets
5486 5487 5488 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5486 def search_snippets @search_snippets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5493 def update!(**args) @answer = args[:answer] if args.key?(:answer) @answer_generation_model_call_signals = args[:answer_generation_model_call_signals] if args.key?(:answer_generation_model_call_signals) @answer_parts = args[:answer_parts] if args.key?(:answer_parts) @cited_snippets = args[:cited_snippets] if args.key?(:cited_snippets) @grounding_signals = args[:grounding_signals] if args.key?(:grounding_signals) @rewriter_model_call_signals = args[:rewriter_model_call_signals] if args.key?(:rewriter_model_call_signals) @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query) @safety_signals = args[:safety_signals] if args.key?(:safety_signals) @search_snippets = args[:search_snippets] if args.key?(:search_snippets) end |