Skip to content

SOVR SDK主权AI责任层

Free Your Eyes. Trust the Code.

SOVR

安装

bash
pip install sovr-sdk
bash
npm install @sovr/sdk

快速示例

python
from sovr_sdk import SOVRClient

client = SOVRClient(
    base_url="https://api.sovr.ai",
    api_key="your-api-key"
)

# 创建决策记录
decision = client.create_decision(
    action="send_email",
    context={"to": "user@example.com", "subject": "Hello"},
    risk_level="low"
)

print(f"Decision ID: {decision.id}")
typescript
import { SOVRClient } from '@sovr/sdk';

const client = new SOVRClient({
  baseUrl: 'https://api.sovr.ai',
  apiKey: 'your-api-key'
});

// 创建决策记录
const decision = await client.createDecision({
  action: 'send_email',
  context: { to: 'user@example.com', subject: 'Hello' },
  riskLevel: 'low'
});

console.log(`Decision ID: ${decision.id}`);

Released under the MIT License.