The EU AI Act requires organizations to classify AI systems by risk level. MeshAI supports four risk levels and provides AI-assisted suggestions to help you classify each agent.
Classification is an upsert: an agent has at most one classification on record, and classifying it again replaces the previous risk level and justification (the earlier record is not versioned).
from meshai import MeshAIclient = MeshAI(api_key="msh_...")classification = client.classify_risk( agent_id="01ARZ3NDEKTSV4RRFFQ69G5FAV", risk_level="high", justification="Agent processes employee performance data for HR decisions", assessed_by="user@company.com", domain_tags=["hr", "employment"], ai_act_categories=["Annex III(4) - employment, workers management"],)
assessed_by is required (1–100 characters); domain_tags and ai_act_categories are optional free-form lists you use to tag the agent’s domain and the Annex III categories it falls under.
Not sure which level to assign? Use the suggestion endpoint. MeshAI analyzes the agent’s metadata (environment, framework, model provider, and metadata flags like handles_pii) and suggests a risk level.
{ "success": true, "data": { "suggested_level": "high", "confidence": 0.85, "reasoning": "Score 0.85 based on: Runs in production environment; Uses external model provider: openai; Handles PII data", "factors": [ "Runs in production environment", "Uses external model provider: openai", "Handles PII data" ] }}
AI suggestions are advisory only. A human must review and confirm the final classification. The suggestion is not recorded as the official classification until you call the classify endpoint.