Skip to main content
The risk engine provides real-time, context-aware risk scoring for AI agent actions. This guide covers integration patterns for both individual and team assessments using the TypeScript and Python SDKs.

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:

Risk gates

Risk gates are pre-configured decision functions that automatically approve, review, or deny actions based on risk thresholds. Use them to embed risk decisions directly into your agent pipelines.

Individual gate

Team gate

Context builders

Context builders provide convenience functions 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. The risk score is returned immediately; the proof typically completes within seconds to minutes depending on complexity. Poll the assessment or use webhooks to get notified when the proof is ready.

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.30 risk score gets classified as medium under conservative tolerance but low under moderate tolerance. The raw score is the same — the interpretation changes.

Billing

Risk assessments are metered events. See Pricing for current rates.

See also