From 1fe49f8bf8bc0752c8e40cbf06d2c6ce66b0d095 Mon Sep 17 00:00:00 2001 From: Caleb Courier Date: Wed, 8 May 2024 10:45:20 -0500 Subject: [PATCH] fixes --- schemas/core/validation-outcome.json | 2 +- schemas/core/validator-log.json | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/schemas/core/validation-outcome.json b/schemas/core/validation-outcome.json index 533d0fc..9a12428 100644 --- a/schemas/core/validation-outcome.json +++ b/schemas/core/validation-outcome.json @@ -27,7 +27,7 @@ }, "validationPassed": { "description": "A boolean to indicate whether or not the LLM output passed validation. If this is False, the validated_output may be invalid.", - "$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/core-schemas/schemas/core/reask.json" + "type": "boolean" }, "error": { "type": "string", diff --git a/schemas/core/validator-log.json b/schemas/core/validator-log.json index d70e163..a9c6b3b 100644 --- a/schemas/core/validator-log.json +++ b/schemas/core/validator-log.json @@ -36,7 +36,14 @@ "$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/core-schemas/schemas/core/any-type.json" }, "validationResult": { - "$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/core-schemas/schemas/core/validation-result.json" + "oneOf": [ + { + "$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/core-schemas/schemas/core/pass-result.json" + }, + { + "$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/core-schemas/schemas/core/fail-result.json" + } + ] }, "startTime": { "type": "string",