Governance
Overview
The Confident AI SDK exposes every Governance method on the platform. This page documents how to call these methods in all supported languages. See the introduction to install the SDK and set your API key.
Methods
Assess Governance
Assesses this project against every control in the governance policy it belongs to, and returns whether they all passed. A project that belongs to no governance policy is rejected with a 400.
from confident_ai import ConfidentAI
client = ConfidentAI()
result = client.governance.assess()For async mode, call a_assess and await it as shown below:
result = await client.governance.a_assess(...)import { ConfidentAI } from "confident-ai";
const client = new ConfidentAI();
const result = await client.governance.assess();Returns
This method returns an object of type GovernanceAssessment.
Types
GovernanceAssessment
The verdict of assessing a project against every control in its governance policy.
class GovernanceAssessment:
passed: bool
governance_policy: GovernancePolicyReference = Field(alias="governancePolicy")passedboolRequired
Whether every control in the policy passed. Use this as the gate in a deployment pipeline: false means at least one control is failing.
Example: true
governance_policyGovernancePolicyReferenceRequired
interface GovernanceAssessment {
passed: boolean;
governancePolicy: GovernancePolicyReference;
}passedbooleanRequired
Whether every control in the policy passed. Use this as the gate in a deployment pipeline: false means at least one control is failing.
Example: true
governancePolicyGovernancePolicyReferenceRequired
GovernancePolicyReference
A governance policy, named by id.
class GovernancePolicyReference:
id: str
name: stridstrRequired
The id of the governance policy.
Example: "<GOVERNANCE-POLICY-ID>"
namestrRequired
The name of the governance policy.
Example: "EU AI Act readiness"
interface GovernancePolicyReference {
id: string;
name: string;
}idstringRequired
The id of the governance policy.
Example: "<GOVERNANCE-POLICY-ID>"
namestringRequired
The name of the governance policy.
Example: "EU AI Act readiness"
Last updated on