public sealed class EvaluationResult.Types.HallucinationResult : IMessage<EvaluationResult.Types.HallucinationResult>, IEquatable<EvaluationResult.Types.HallucinationResult>, IDeepCloneable<EvaluationResult.Types.HallucinationResult>, IBufferMessage, IMessageReference 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.
Implements
IMessageEvaluationResultTypesHallucinationResult, IEquatableEvaluationResultTypesHallucinationResult, IDeepCloneableEvaluationResultTypesHallucinationResult, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
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 |
|