Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
Smart compose specific configuration for evaluation job.
Instance Attribute Summary collapse
-
#allowlist_document ⇒ String
The allowlist document resource name.
-
#max_result_count ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
constructor
A new instance of GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
Returns a new instance of GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig.
8092 8093 8094 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8092 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowlist_document ⇒ String
The allowlist document resource name. Format: projects//knowledgeBases//
documents/. Only used for smart compose model.
Corresponds to the JSON property allowlistDocument
8082 8083 8084 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8082 def allowlist_document @allowlist_document end |
#max_result_count ⇒ Fixnum
Required. The model to be evaluated can return multiple results with
confidence score on each query. These results will be sorted by the descending
order of the scores and we only keep the first max_result_count results as the
final results to evaluate.
Corresponds to the JSON property maxResultCount
8090 8091 8092 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8090 def max_result_count @max_result_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8097 8098 8099 8100 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8097 def update!(**args) @allowlist_document = args[:allowlist_document] if args.key?(:allowlist_document) @max_result_count = args[:max_result_count] if args.key?(:max_result_count) end |