Loading...
Loading...
Get Started
Add governance to your AI agents in under 5 minutes.
npm install @omegaengine/sdkimport { OmegaEngine } from "@omegaengine/sdk";
const omega = new OmegaEngine({
apiKey: process.env.OMEGA_API_KEY!,
});const verdict = await omega.judge({
scenario: "Should I approve this $50k wire transfer?",
context: "VIP customer, 780 credit score",
domain: "finance",
riskTolerance: "low",
});
if (verdict.decision === "DENY") {
throw new Error(verdict.reasoning);
}
if (verdict.needsHumanReview) {
await escalateToHuman(verdict);
return;
}
// Safe to proceed
await executeTransfer();// Verdict structure from /api/v2/judge
{
decision: "APPROVE" | "DENY" | "ESCALATE" | "REVIEW",
confidence: 0.89,
riskLevel: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL",
riskScore: 23,
reasoning: "Strong credit profile with stable history...",
needsHumanReview: false,
policyTags: ["FINANCIAL_DECISION", "CREDIT_ASSESSMENT"],
auditId: "aud_7x8k2m9n...",
metadata: {
latencyMs: 245,
model: "gpt-5.4",
engineVersion: "2.0.0-beta"
}
}curl -X POST https://api.omegaengine.ai/api/v2/judge \
-H "Content-Type: application/json" \
-H "x-api-key: omega_your_api_key_here" \
-d '{
"scenario": "Should I approve this wire transfer?",
"domain": "finance",
"riskTolerance": "low"
}'