Graphorin API reference v0.5.0
Graphorin API reference / @graphorin/agent / / GuardrailDefinition
Interface: GuardrailDefinition<TValue>
Defined in: packages/security/dist/guardrails/types.d.ts:75
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/dist/guardrails/types.d.ts:78 |
kind | readonly | "output" | "input" | packages/security/dist/guardrails/types.d.ts:76 |
name | readonly | string | packages/security/dist/guardrails/types.d.ts:77 |