GuardrailApplication
Record of one guardrail that rewrote or blocked text.
Defined in: src/core/pipeline/GuardrailPipeline.ts:37
Record of one guardrail that rewrote or blocked text.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
blocked | boolean | Whether the guardrail blocked the text. | src/core/pipeline/GuardrailPipeline.ts:45 |
guardrail | string | Guardrail.name of the guardrail that acted. | src/core/pipeline/GuardrailPipeline.ts:39 |
metadata? | Record<string, unknown> | Detail supplied by the guardrail, if any. | src/core/pipeline/GuardrailPipeline.ts:49 |
original | string | Text handed to the guardrail. | src/core/pipeline/GuardrailPipeline.ts:41 |
reason? | string | Explanation supplied by the guardrail, if any. | src/core/pipeline/GuardrailPipeline.ts:47 |
text | string | Text the guardrail produced (empty when blocked). | src/core/pipeline/GuardrailPipeline.ts:43 |