check_compliance
Check already-produced AI text against offline compliance rules for EU AI Act, US, or GLOBAL scopes, returning PASS/FAIL with rule ID, severity, citation, and remediation.
Instructions
EU AI Act Article 5 and Article 50. TrustLint offline regex: not the hosted policy engine, not a system classifier. Check already-produced text (model input or output) against ComplyEdge TrustLint offline YAML rules (regex corpus). Use for post-hoc evaluation of text that already exists; for pre-generation screening of a prompt about to be sent, use scan_prompt. Argument text must be non-empty content to evaluate (empty/whitespace is rejected before any rule runs; this is not a system-risk questionnaire). Optional jurisdiction is EU, US, or GLOBAL; omit it to evaluate the full corpus. GLOBAL is a separate corpus tag, not the union of EU and US : reuse the same token you used with list_rules for a scoped check. Runs fully offline : no network call, no API key, no credentials stored, no writes outside the process, read-only and idempotent; regex match against the bundled corpus; does not classify AI-system risk tiers or call any remote API. Returns PASS/FAIL with rule ID, severity, citation, and remediation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Non-empty already-produced content to evaluate (model input or output). Empty/whitespace is rejected before rules run; not a system-risk questionnaire. | |
| jurisdiction | No | Corpus scope: EU, US, or GLOBAL. Omit to evaluate the full corpus. GLOBAL is a separate tag, not EU∪US : reuse the same token from list_rules. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | No | ||
| violations | Yes | ||
| has_critical | No | ||
| rules_evaluated | Yes |