Python SDK¶
The Opencomplai Python SDK provides a programmatic interface to the EU AI Act compliance assessment engine.
Installation¶
Quick Start¶
Python
from opencomplai import assess, AssessmentInput, ModelMetadata
result = assess(AssessmentInput(
model=ModelMetadata(
name="my-model",
version="1.0.0",
modality="text",
use_case="customer support chatbot",
deployment_context="production",
)
))
print(result.risk_level) # "minimal"
print(result.evidence_summary) # "Risk classification: MINIMAL. ..."
Sections¶
- Installation — Install the Python SDK
- API Reference — Complete API documentation
Related¶
- REST API — HTTP gateway API reference
- Code Examples — Working examples