Interface EvaluationResult.HallucinationResultOrBuilder (0.3.0)

public static interface EvaluationResult.HallucinationResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExplanation()

public abstract String getExplanation()

Output only. The explanation for the hallucination score.

string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The explanation.

getExplanationBytes()

public abstract ByteString getExplanationBytes()

Output only. The explanation for the hallucination score.

string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for explanation.

getLabel()

public abstract String getLabel()

Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The label.

getLabelBytes()

public abstract ByteString getLabelBytes()

Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess

string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for label.

getScore()

public abstract int getScore()

Output only. The hallucination score. Can be -1, 0, 1.

optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The score.

hasScore()

public abstract boolean hasScore()

Output only. The hallucination score. Can be -1, 0, 1.

optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the score field is set.