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
| Parameter | Type | Description |
|---|---|---|
rules | readonly string[] | System rules to evaluate |
config | PromptFirewallConfig | Firewall configuration |
Returns
Promise<FirewallVerdict>
A structured verdict with allowed and rejected rules