Skip to content

InputGuardrailFunction

type InputGuardrailFunction = (args) => Promise<GuardrailFunctionOutput>;

The function that performs the actual input guardrail check and returns the decision on whether a guardrail was triggered.

Parameter Type

args

InputGuardrailFunctionArgs

Promise<GuardrailFunctionOutput>