Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig

Inherits:
Object
  • Object
show all
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 reply specific configuration for evaluation job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig

Returns a new instance of GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig.



11125
11126
11127
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11125

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowlist_documentString

The allowlist document resource name. Format: projects//knowledgeBases// documents/. Only used for smart reply model. Corresponds to the JSON property allowlistDocument

Returns:

  • (String)


11115
11116
11117
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11115

def allowlist_document
  @allowlist_document
end

#max_result_countFixnum

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

Returns:

  • (Fixnum)


11123
11124
11125
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11123

def max_result_count
  @max_result_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11130
11131
11132
11133
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11130

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