Evaluate rules
evaluate_rulesEvaluate multiple plain-language rules at once against supplied context, returning yes/no or choice decisions with confidence and an uncertain flag for cases needing user input.
Instructions
Decide several rules at once (one Jev call) for the given context. Uses rules from the rules file and/or custom rules. Each yes/no result has decision, probability and 'uncertain'; each choice result has decision, confidence and 'uncertain'. When 'uncertain' is true, ask the user instead of acting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | Everything needed to decide, as plain text or a JSON object. Examples: a GitHub issue (title, body, labels, comments), an email, a social media post, a support ticket, a document, the current state of a task. | |
| rule_ids | No | Which rules from the file to run. Omit to run all. Pass [] to run only custom_rules. | |
| rules_file | No | Path to a rules YAML file. Default: JEV_RULES_FILE env var, then .jev/rules.yaml in the working directory. | |
| custom_rules | No | Extra rules defined now, keyed by id. Same format as rules in the file. |