StyloDocs
Workflow blocks

Guardrails

Validate outputs, detect hallucinations/PII

View as Markdown

system/guardrails — Validate outputs, detect hallucinations/PII.

Where it appears

The Guardrails block lives in the Logic & control group of the Workflow Builder.

Fields

FieldTypeRequiredDefaultDescription
payloadcodeNoJSON payload the guardrails run against to detect hallucinations and PII. Use <NodeName.field> to pass in upstream content (e.g. a generated draft). Leave empty to check the default upstream output.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Guardrails.field>.

NameTypeDescription
successbooleanWhether guardrails passed
policyjsonPolicy applied
redactedPayloadjsonRedacted payload
warningsarrayWarnings array
errorstringError if failed

Limits and failure modes

  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page