Launch Week 3: Five days of launches

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(...)

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

GovernancePolicyReference

A governance policy, named by id.

class GovernancePolicyReference:
    id: str
    name: str

idstrRequired

The id of the governance policy.

Example: "<GOVERNANCE-POLICY-ID>"

namestrRequired

The name of the governance policy.

Example: "EU AI Act readiness"

Building a production pipeline?Design a scalable API workflow for evals, datasets, traces, and promptsTalk to an engineer

Last updated on

Built byConfident AI