Add dedicated template agent contract doc

This commit is contained in:
elipitc
2026-06-04 23:40:14 +08:00
parent f6851c9680
commit 8e9032e74a
2 changed files with 280 additions and 0 deletions
+13
View File
@@ -93,3 +93,16 @@ def test_a2a_docs_describe_agent_access_token_header():
assert "请求头不匹配时返回 `403`" in coding_doc_source
assert "客户端直连鉴权" in integration_doc_source
assert "X-Agent-Access-Token == AGENT_ACCESS_TOKEN" in integration_doc_source
def test_dedicated_template_agent_contract_doc_exists():
"""A standalone HM-facing template-agent contract doc should exist."""
doc_source = _read("docs/HEICODE_TEMPLATE_AGENT_RUNTIME_CONTRACT.md")
assert "# Heicode Template Agent Runtime 对接文档" in doc_source
assert "## 3. 状态接口" in doc_source
assert "GET /agents/{agent_name}" in doc_source
assert "GET /agents/{agent_name}/status" in doc_source
assert "POST /agents/{agent_name}/stop" in doc_source
assert "DELETE /agents/{agent_name}" in doc_source
assert "X-Agent-Access-Token" in doc_source