Google Cloud Dialogflow V2 Client - Class AdherenceRubric (2.3.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AdherenceRubric.

Rubric result of the adherence evaluation. A rubric is ued to determine if the summary adheres to all aspects of the given instructions.

Generated from protobuf message google.cloud.dialogflow.v2.SummarizationEvaluationMetrics.AdherenceRubric

Namespace

Google \ Cloud \ Dialogflow \ V2 \ SummarizationEvaluationMetrics

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ question string

Output only. The question generated from instruction that used to evaluate summary.

↳ reasoning string

Output only. The reasoning of the rubric question is addressed or not.

↳ is_addressed bool

Output only. A boolean that indicates whether the rubric question is addressed or not.

getQuestion

Output only. The question generated from instruction that used to evaluate summary.

Returns
Type Description
string

setQuestion

Output only. The question generated from instruction that used to evaluate summary.

Parameter
Name Description
var string
Returns
Type Description
$this

getReasoning

Output only. The reasoning of the rubric question is addressed or not.

Returns
Type Description
string

setReasoning

Output only. The reasoning of the rubric question is addressed or not.

Parameter
Name Description
var string
Returns
Type Description
$this

getIsAddressed

Output only. A boolean that indicates whether the rubric question is addressed or not.

Returns
Type Description
bool

hasIsAddressed

clearIsAddressed

setIsAddressed

Output only. A boolean that indicates whether the rubric question is addressed or not.

Parameter
Name Description
var bool
Returns
Type Description
$this