Gemini Enterprise for Customer Experience v1beta API - Class EvaluationResult.Types.HallucinationResult (1.0.0-beta01)

public sealed class EvaluationResult.Types.HallucinationResult : IMessage<EvaluationResult.Types.HallucinationResult>, IEquatable<EvaluationResult.Types.HallucinationResult>, IDeepCloneable<EvaluationResult.Types.HallucinationResult>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class EvaluationResult.Types.HallucinationResult.

The result of the hallucination check for a single turn.

Inheritance

object > EvaluationResult.Types.HallucinationResult

Namespace

Google.Cloud.Ces.V1Beta

Assembly

Google.Cloud.Ces.V1Beta.dll

Constructors

HallucinationResult()

public HallucinationResult()

HallucinationResult(HallucinationResult)

public HallucinationResult(EvaluationResult.Types.HallucinationResult other)
Parameter
Name Description
other EvaluationResultTypesHallucinationResult

Properties

Explanation

public string Explanation { get; set; }

Output only. The explanation for the hallucination score.

Property Value
Type Description
string

HasScore

public bool HasScore { get; }

Gets whether the "score" field is set

Property Value
Type Description
bool

Label

public string Label { get; set; }

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

Property Value
Type Description
string

Score

public int Score { get; set; }

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

Property Value
Type Description
int