check_relevance
Free relevance screen — checks whether an action touches any of your policy variables before running a paid check. Returns a relevance score and which variables matched. If should_check is true, run check_action. If false, the action is unrelated to your policy — skip the paid check. No credits charged. Requires api_key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The agent action to screen (max 2000 chars) | |
| api_key | Yes | Your ICME API key | |
| policy_id | Yes | Policy ID from make_rules | |
| threshold | No | Relevance threshold (0.0 to 1.0). Default 0.0 — any match triggers should_check. Optional. |