BaseResponse
Base class for all scorer response types.
Base class for all scorer response types.
You don't use this directly -- use BinaryResponse, NumericResponse,
or a CategoricalResponse subclass instead.
Attributes
value
:Union[bool, str, float]
The score (bool, str, or float depending on type).
reason
:str
Explanation of why this score was given.
citations
:Optional[List[Citation]]
Optional references to specific trace spans.
Default:
None
_return_type
:Literal['binary', 'categorical', 'numeric']