Skip to content

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 ParameterDefault type
TValueunknown

Parameters

ParameterType
specOmit<OutputGuardrail&lt;TValue&gt;, "kind">

Returns

OutputGuardrail&lt;TValue&gt;

Stable