Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / GuardrailDefinition
Interface: GuardrailDefinition<TValue>
Defined in: packages/security/src/guardrails/types.ts:79
Definition of a single guardrail. The kind discriminator lets downstream code tell input from output guardrails without juggling separate registries.
Stable
Type Parameters
| Type Parameter | Default type |
|---|---|
TValue | unknown |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
check | readonly | (value, ctx) => | GuardrailResult<TValue> | Promise<GuardrailResult<TValue>> | packages/security/src/guardrails/types.ts:82 |
kind | readonly | "input" | "output" | packages/security/src/guardrails/types.ts:80 |
name | readonly | string | packages/security/src/guardrails/types.ts:81 |