Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / defineOutputGuardrail
Function: defineOutputGuardrail()
ts
function defineOutputGuardrail<TValue>(spec): OutputGuardrail<TValue>;Defined in: packages/security/src/guardrails/builders.ts:40
Create a typed output guardrail. Thin wrapper around the declarative shape.
Type Parameters
| Type Parameter | Default type |
|---|---|
TValue | unknown |
Parameters
| Parameter | Type |
|---|---|
spec | Omit<OutputGuardrail<TValue>, "kind"> |
Returns
OutputGuardrail<TValue>