Skip to content
providerkit
GitHub

Guardrail

type Guardrail<K> = (input, context) =>
| GuardVerdict
| Promise<GuardVerdict>;

Defined in: agents/src/types.ts:312

Type Parameter
K extends GuardStage
Parameter Type
input GuardInputs[K]
context LifecycleContext

| GuardVerdict | Promise<GuardVerdict>