← 返回模板库
智能体功能定制模块 / 开放起步包
K 协议 · 组件契约
用明确的输入输出、执行边界与证据要求,组织智能体的工具和工作流。
HOW TO USE
如何开始使用
- 01
下载并阅读 README 与许可文件。
- 02
先在独立测试目录按包内命令验证。
- 03
在真实工作流中适配并记录验收证据。
一个使用场景
以一项任务检查输入、风险分级、计划、验证证据和过程记录。
适用边界
KGL-C/V2 开放起步契约,不是 MCP 传输协议;适配和权限强制需由运行时实现。
下载包包含
- LICENSE.md
- README.md
- components/k.policy.component_protocol_v2.json
- docs/CLAIM_BOUNDARIES.md
- schemas/k_component_v2.schema.json
components/k.policy.component_protocol_v2.json
只读预览{
"component_id": "k.policy.component_protocol_v2",
"component_type": "K-Policy",
"version": "0.1.0",
"purpose": "Define the public starter contract for governed K components.",
"inputs": ["component_profile"],
"outputs": ["validated_component_contract"],
"risk_level": "B",
"gates": [],
"dependencies": [],
"runtime": {"mode": "python_api", "binding": "kcomponents.validate_component"},
"tests": [{"name": "package_validation", "command": "python -B tools/validate_package.py"}],
"audit": {"required": true, "evidence": ["component_hash", "validation_output"]},
"lifecycle": "active",
"protocol_version": "KGL-C/V2",
"contracts": {
"interface": {"input_schema_ref": ["schemas/k_component_v2.schema.json"], "output_schema_ref": ["validation_report"]},
"execution": {"side_effect_class": "read_only", "idempotency": "required"},
"resource": {"network": "disabled_by_default", "cost_budget": "zero_paid_usage"},
"stability": {"fallback": "fail_closed"},
"cache": {"cacheable": true},
"state": {"write_scope": "declared_outputs_only"},
"security": {"secret_policy": "no_secret_read_by_default"},
"observability": {"trace_id_required": true},
"adapter": {"cli_binding": true, "api_binding": false},
"selection": {"capability_score": 0.8}
}
}
完整文件与许可说明随下载包提供。
COMMUNITY FEEDBACK
评论与星级评价
使用后分享你的建议,让模板一起变好。
—暂无已公开评价
正在加载评价…