Spec templates
Copy-pasteable RuntimeAISpec patterns.
12 production-shaped TypeScript spec templates covering the typical LLM-in-the-loop features across 9 sectors. Each template includes the closed-enum schema, prompt template, reviewer gate, fallback behaviour, and the regulations it addresses. BSL-1.1 source-available SDK; copy + modify in your codebase.
Fintech & Payments
Sector page →Real-time fraud classifier
classifierClosed-enum verdict (approve / review / decline) per transaction with confidence band + rationale. Deterministic fallback to decline-all on LLM failure.
Reviewer-gate: on-low-confidence
Open template →
PSD3 SCA exemption decider
classifierRisk-based + transaction-risk-analysis exemption verdict per RTS on SCA. Each decision binds the risk score + exemption category to the spec hash for proposed PSR Arts. 85–89 reproducibility.
Reviewer-gate: on-low-confidence
Open template →
Healthtech
Sector page →Symptom-triage classifier (CDS)
classifierUrgency-level classification per symptom-presentation. Always-human reviewer-gate on high-acuity outputs. Deterministic fallback to highest-risk default to prevent false-low-urgency triage.
Reviewer-gate: always-human
Open template →
Clinical-note structurer
extractorExtracts structured fields (ICD-10 codes, medications, problem-list items) from free-text clinical notes. Reviewer-gate on low confidence or schema violation routes to clinician review.
Reviewer-gate: on-schema-violation
Open template →
HR Tech & Recruiting
Sector page →Resume screening + ranking
classifierPer-candidate fit-score + recommendation (advance / hold / reject). Always-human reviewer-gate on REJECT decisions per AI Act Art. 14 + Schufa-aware Art. 22 meaningful-intervention.
Reviewer-gate: always-human
Open template →
Interview transcript scorer
classifierCompetency-rubric scoring from interview transcripts (TEXT only — never emotion/voice/facial). Spec-hash binds the rubric version per decision.
Reviewer-gate: always-human
Open template →
InsurTech
Sector page →EdTech
Sector page →PropTech & Real Estate
Sector page →Customer Support SaaS
Sector page →Cybersecurity SMBs
Sector page →Energy & Utilities
Sector page →How to use a template
- Create a free Dev-tier workspace for the API key + Ed25519 signing key.
- Install the SDK:
npm install https://promethean.software/runtime-ai/latest.tgz. - Copy the template code into your codebase. Adjust
modelIdentityand prompt template for your context. - Call
runConstrainedAI(spec, input, { client, receiptLogPath, productId, signingKey })in place of your existing LLM call. (UsecreateMockRuntimeAIClient(spec)for local testing, or an Anthropic / OpenAI / Azure adapter for production.) - Verify the chain with verify.mjs.