scan_prompt
Scan a candidate prompt against offline EU AI Act Article 5 and 50 regex rules before sending it to a model, returning SAFE or RISK_DETECTED with cited findings.
Instructions
EU AI Act Article 5 and Article 50. TrustLint offline regex: not the hosted policy engine, not a system classifier. Scan an AI prompt with ComplyEdge TrustLint offline YAML rules (regex corpus) before generation : pre-generation only. Use when the prompt is about to be sent; for post-hoc evaluation of already-produced text, use check_compliance. Argument prompt must be a non-empty candidate prompt about to be sent to a model (empty/whitespace is rejected; not already-produced output). This tool has no jurisdiction filter : it always evaluates the full bundled corpus. 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 SAFE or RISK_DETECTED with cited findings from the offline regex corpus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Non-empty candidate prompt about to be sent to a model (pre-generation). Empty/whitespace is rejected; not already-produced output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risks | No | ||
| status | Yes | ||
| message | No | ||
| recommendation | No | ||
| rules_evaluated | Yes |