Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Match
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Match
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v3beta1/classes.rb,
generated/google/apis/dialogflow_v3beta1/representations.rb,
generated/google/apis/dialogflow_v3beta1/representations.rb
Overview
Represents one match result of MatchIntent.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
The confidence of this match.
-
#event ⇒ String
The event that matched the query.
-
#intent ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
An intent represents a user's intent to interact with a conversational agent.
-
#match_type ⇒ String
Type of this Match.
-
#parameters ⇒ Hash<String,Object>
The collection of parameters extracted from the query.
-
#resolved_input ⇒ String
Final text input which was matched during MatchIntent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Match
constructor
A new instance of GoogleCloudDialogflowCxV3beta1Match.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Match
Returns a new instance of GoogleCloudDialogflowCxV3beta1Match.
4648 4649 4650 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4648 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
The confidence of this match. Values range from 0.0 (completely uncertain) to
1.0 (completely certain). This value is for informational purpose only and is
only used to help match the best intent within the classification threshold.
This value may change for the same end-user expression at any time due to a
model retraining or change in implementation.
Corresponds to the JSON property confidence
4609 4610 4611 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4609 def confidence @confidence end |
#event ⇒ String
The event that matched the query. Only filled for EVENT
match type.
Corresponds to the JSON property event
4614 4615 4616 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4614 def event @event end |
#intent ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Intent
An intent represents a user's intent to interact with a conversational agent.
You can provide information for the Dialogflow API to use to match user input
to an intent by adding training phrases (i.e., examples of user input) to your
intent.
Corresponds to the JSON property intent
4622 4623 4624 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4622 def intent @intent end |
#match_type ⇒ String
Type of this Match.
Corresponds to the JSON property matchType
4627 4628 4629 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4627 def match_type @match_type end |
#parameters ⇒ Hash<String,Object>
The collection of parameters extracted from the query. Depending on your
protocol or client library language, this is a map, associative array, symbol
table, dictionary, or JSON object composed of a collection of (MapKey,
MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
MapValue type: - If parameter's entity type is a composite entity: map - Else:
string or number, depending on parameter value type - MapValue value: - If
parameter's entity type is a composite entity: map from composite entity
property names to property values - Else: parameter value
Corresponds to the JSON property parameters
4639 4640 4641 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4639 def parameters @parameters end |
#resolved_input ⇒ String
Final text input which was matched during MatchIntent. This value can be
different from original input sent in request because of spelling correction
or other processing.
Corresponds to the JSON property resolvedInput
4646 4647 4648 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4646 def resolved_input @resolved_input end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4653 4654 4655 4656 4657 4658 4659 4660 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 4653 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @event = args[:event] if args.key?(:event) @intent = args[:intent] if args.key?(:intent) @match_type = args[:match_type] if args.key?(:match_type) @parameters = args[:parameters] if args.key?(:parameters) @resolved_input = args[:resolved_input] if args.key?(:resolved_input) end |