Skip to content

EnforcementRule

appliesTo: string[] | "*";

check: (call, context) =>
| EnforcementResult
| Promise<EnforcementResult>;
Parameter Type

call

ToolCallRecord

context

EnforcementContext

| EnforcementResult | Promise<EnforcementResult>


description: string;

name: string;

optional phase?: "call" | "result" | "both";