Python SDK
SOVR Python SDK 提供了完整的 Python 客户端库。
安装
bash
pip 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"},
risk_level="low"
)文档
- SOVRClient - 主客户端类
- TrustBundle - 信任包管理
- Decision - 决策管理
- 异常处理 - 错误和异常