check_purpose_permitted
Check whether a given purpose (e.g., research:academic) is permitted under source terms, with support for wildcards and hierarchical matching for flexible policy evaluation.
Instructions
Check if a purpose is permitted under source terms. Supports wildcards (research:*) and hierarchical matching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | Yes | Purpose to check (e.g. research:academic, training:model) | |
| allowedPurposes | Yes | Purposes allowed by the source terms |