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)
record = client.issue_confirm(result.plan, confirmed_by="user-id")
contract = client.build_contract(result.plan, confirm=record)
client.execute(contract, step_runner=your_handler) # 见 DOCS §5
无 API Key 仅审计划:airoles-audit path/to/plan.json
当前版本 0.9.12 — 完整说明见 DOCS.md(宪法树、MCP、§10 执法收口、§11 产物验收、§12 可信执行内核 P7)。
任意模型 → airoles(宪法 + 司法)→ 你的实践层(执法)
Metadata
Release files for airoles 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| airoles-0.11.0.tar.gz | 229.9 kB | Without provenance | Details for airoles-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| airoles-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for airoles-0.11.0-py3-none-any.whl |
Total release size: 481.7 kB
Release files / airoles-0.11.0.tar.gz
| Download URL | airoles-0.11.0.tar.gz |
|---|---|
| Size | 229.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b5a5bf128212f92f022c282e63457e6fe137cbf9c6d28593d31b2dbe8f0635d
|
|
BLAKE2b-256 checksum How to use checksums |
5b8295d64bc7c9c1cefbe8633640e1be9dd9ef9c02e77686fb5eb4ff77ccfd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / airoles-0.11.0-py3-none-any.whl
| Download URL | airoles-0.11.0-py3-none-any.whl |
|---|---|
| Size | 251.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
878cc5f5887998225a0a08f4a1e29df6475f020330115ffa0d1ff3cb49199c04
|
|
BLAKE2b-256 checksum How to use checksums |
5332559adae63840402adaa5b14e00682fd3a2aa9f7eeef76b9cecfcef210e3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for airoles 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.