AI Constitution layer — model-agnostic Role/Policy, audit, and CRUD disclosure for any executor
Project description
airoles
AI 宪法树 · 按需走枝 — 每步只加载该环节的 Policy 枝条;司法在本包,执法在集成方。
pip install airoles
export AIROLES_API_KEY=sk-...
export AIROLES_BASE_URL=https://api.deepseek.com/v1
export AIROLES_MODEL=deepseek-chat
from airoles import ConstitutionClient
client = ConstitutionClient.from_env()
result = client.plan("分析销售数据并给出可执行方案")
print(result.client_crud_notice)
if not result.audit.ok:
print(result.audit.violations)
无 API Key 仅审计划:airoles-audit path/to/plan.json
完整说明见 DOCS.md(安装、宪法树、架构、MCP、审计、测试、发版)。
任意模型 → airoles(宪法 + 司法)→ 你的实践层(执法)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
airoles-0.5.8.tar.gz
(79.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
airoles-0.5.8-py3-none-any.whl
(134.2 kB
view details)
File details
Details for the file airoles-0.5.8.tar.gz.
File metadata
- Download URL: airoles-0.5.8.tar.gz
- Upload date:
- Size: 79.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f7f5d14a022a53270ad37b54f70e045fe73a1c3af27b432f8a225fc17221e6a
|
|
| MD5 |
5222e6d3ff0fbcdc7d5a4e8d913b5c1f
|
|
| BLAKE2b-256 |
8bfb9b5c92158bd0f9ecba01058e596317416902cfc56668b82d009b3a2d48d2
|
File details
Details for the file airoles-0.5.8-py3-none-any.whl.
File metadata
- Download URL: airoles-0.5.8-py3-none-any.whl
- Upload date:
- Size: 134.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d270f1c58c7577484a7a46a0826947ae76652392dca38f34eae04698e5e8dbc7
|
|
| MD5 |
4cbc7b919a6e80ff934586d87937824f
|
|
| BLAKE2b-256 |
54bb8111ac866ba41315baf90b5b2864d7995592e170c0b64f9380b3b6b174ac
|