Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SmartReplyConfig.
Smart reply specific configuration for evaluation job.
Generated from protobuf message google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig
Namespace
Google \ Cloud \ Dialogflow \ V2 \ EvaluationConfig
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ allowlist_document
string
The allowlist document resource name. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>. Only used for smart reply model.
↳ max_result_count
int
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.
getAllowlistDocument
The allowlist document resource name.
Format: projects/<Project ID>/knowledgeBases/<Knowledge Base
ID>/documents/<Document ID>. Only used for smart reply model.
Returns
Type
Description
string
setAllowlistDocument
The allowlist document resource name.
Format: projects/<Project ID>/knowledgeBases/<Knowledge Base
ID>/documents/<Document ID>. Only used for smart reply model.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMaxResultCount
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.
Returns
Type
Description
int
setMaxResultCount
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class SmartReplyConfig (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.EvaluationConfig.SmartReplyConfig)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.EvaluationConfig.SmartReplyConfig)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.EvaluationConfig.SmartReplyConfig)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.EvaluationConfig.SmartReplyConfig)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.EvaluationConfig.SmartReplyConfig)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.EvaluationConfig.SmartReplyConfig)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.EvaluationConfig.SmartReplyConfig)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.EvaluationConfig.SmartReplyConfig)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.EvaluationConfig.SmartReplyConfig)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.EvaluationConfig.SmartReplyConfig)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.EvaluationConfig.SmartReplyConfig)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.EvaluationConfig.SmartReplyConfig) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class SmartReplyConfig.\n\nSmart reply specific configuration for evaluation job.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2 \\\\ EvaluationConfig\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllowlistDocument\n\nThe allowlist document resource name.\n\nFormat: `projects/\u003cProject ID\u003e/knowledgeBases/\u003cKnowledge Base\nID\u003e/documents/\u003cDocument ID\u003e`. Only used for smart reply model.\n\n### setAllowlistDocument\n\nThe allowlist document resource name.\n\nFormat: `projects/\u003cProject ID\u003e/knowledgeBases/\u003cKnowledge Base\nID\u003e/documents/\u003cDocument ID\u003e`. Only used for smart reply model.\n\n### getMaxResultCount\n\nRequired. The model to be evaluated can return multiple results with\nconfidence score on each query. These results will be sorted by the\ndescending order of the scores and we only keep the first\nmax_result_count results as the final results to evaluate.\n\n### setMaxResultCount\n\nRequired. The model to be evaluated can return multiple results with\nconfidence score on each query. These results will be sorted by the\ndescending order of the scores and we only keep the first\nmax_result_count results as the final results to evaluate."]]