verify_decision
Check whether an AI decision is allowed, denied, or needs escalation according to a sealed NOMOS governance artifact. Always returns allowed (boolean) — that field is safe to read regardless of which artifact type answered. The rest of the shape genuinely differs by artifact type, because it proxies two different underlying endpoints: pub_ demo artifacts return a flat shape (outcome: auto_approved/auto_rejected/escalated, rule_applied, rule_reference, flat confidence and audit_hash); your own sealed artifacts from Studio return a nested shape (verdict: approved/rejected/escalated, a nested rule object, and nested confidence/audit/performance objects). See outputSchema for both exact shapes — do not assume one without checking which kind of artifact_id was passed. Use artifact IDs starting with pub_ for public demo artifacts that require no API key: pub_lending_v1 (loan approval), pub_refund_v1 (refund policy), pub_fraud_v1 (fraud detection), pub_hr_leave_v1 (HR leave approval), pub_kyc_v1 (KYC/identity).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | Key/value input fields for rule evaluation (e.g. {"amount": 5000, "credit_score": 720}). Fields must match the artifact's declared data contract. | |
| api_key | No | NOMOS API key (nmk_live_...). Not required for pub_ artifacts. | |
| decision | Yes | The action or decision being checked, as a verb phrase (e.g. "approve_loan", "process_refund", "approve_leave"). Should match an action defined in the artifact. | |
| domain_id | No | Your NOMOS domain ID. Required for custom artifacts created in Studio. Not needed for pub_ artifacts. | |
| artifact_id | Yes | Sealed artifact ID to evaluate against. Use pub_lending_v1, pub_refund_v1, pub_fraud_v1, pub_hr_leave_v1, or pub_kyc_v1 for public demos. Use your own artifact ID from Studio for custom governance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||