PythonHostedResponses

BinaryResponse

Pass/fail response for binary scorers.

Pass/fail response for binary scorers.

return BinaryResponse(
    value=True,
    reason="Output correctly answers the question.",
)

Attributes

value

:

bool

True if the evaluation passed, False otherwise.

_return_type

:

Literal['binary']

Default:

'binary'

reason

:

str

citations

:

Optional[List[Citation]]

Default:

None

On this page