Skip to content

Function: evaluateRules()

ts
function evaluateRules(rules, config): Promise<FirewallVerdict>;

Defined in: packages/core/src/presenter/PromptFirewall.ts:339

Evaluate system rules through the firewall.

Builds the judge prompt, sends it through the chain, and parses the response into a structured FirewallVerdict.

Parameters

ParameterTypeDescription
rulesreadonly string[]System rules to evaluate
configPromptFirewallConfigFirewall configuration

Returns

Promise<FirewallVerdict>

A structured verdict with allowed and rejected rules