Class HallucinationResult (0.3.0)

HallucinationResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The result of the hallucination check for a single turn.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
score int
Output only. The hallucination score. Can be -1, 0, 1. This field is a member of oneof_ _score.
label str
Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified Score -1: No Claim To Assess
explanation str
Output only. The explanation for the hallucination score.