Skip to main content
The risk engine provides real-time, context-aware risk scoring for AI agent actions. There is a TypeScript SDK (@mnemom/risk); there is no official Python SDK today, so Python examples below call the REST API directly with httpx.

Quick start

Individual assessment

Assess whether an agent should be allowed to perform a specific action:

Team assessment

Assess whether a group of agents is safe to operate together:

Which agents you can assess

You can assess any agent whose reputation is public or unlisted, including agents in other organizations — that counterparty check is what the engine is for. Both the individual and team endpoints refuse the rest:

Risk gates

Risk gates wrap an assessment call with a pass/fail check against a maximum risk score and/or level, so you can embed a single boolean decision in your agent pipeline instead of interpreting a raw assessment.

Individual gate

Team gate

The team gate has the same {allowed, assessment, reason} shape as the individual gate — gate on assessment.team_recommendation for the finer-grained approve_team / approve_individuals_only / deny triage:

Context builders

@mnemom/risk exports convenience functions that build a RiskContext object for common action types:

Understanding the response

Individual assessment response

Key fields:

Team assessment response

The team response includes everything from individual assessments plus team-specific analytics:

Monitoring risk over time

Fetch risk assessment history for trend analysis:
The Risk Playground in the dashboard provides an interactive visualization of risk history with color-coded risk level bands.

Verifying ZK proofs

Once a proof is generated, retrieve and verify it:
Proofs are generated asynchronously and are best-effort — the risk score is returned immediately and is valid regardless of whether a proof ever completes. Poll GET /v1/risk/proofs/:proof_id to follow a proof through to verified or failed.

Choosing action types

Select the action type that best matches what the agent is about to do:

Choosing risk tolerance

Risk tolerance affects classification thresholds, not the underlying score. An agent with a 0.20 risk score gets classified as medium under conservative tolerance (medium starts at 0.15) but low under moderate tolerance (low goes up to 0.25). The raw score is the same — the interpretation changes.

Billing

Mnemom uses μ-based usage pricing (1 μ = $0.01) with no fixed plan tiers — risk assessments are metered events billed against your μ balance. See Pricing for current rates and what proof availability requires on your account.

See also