We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 832bee4 + aec631a commit 088cd8aCopy full SHA for 088cd8a
guardrails/integrations/langchain/guard_runnable.py
@@ -15,7 +15,7 @@ def __init__(self, guard: Guard):
15
def _validate(self, input: str) -> OT:
16
response: ValidationOutcome[OT] = self.guard.validate(input)
17
validated_output = response.validated_output
18
- if not validated_output or response.validation_passed is False:
+ if validated_output is None or response.validation_passed is False:
19
raise ValidationError(
20
(
21
"The response from the LLM failed validation!"
0 commit comments