feat: update agent heartbeat endpoint to require no request payload

This commit is contained in:
Abhimanyu Saharan
2026-02-16 01:46:06 +05:30
parent 7a3a2366da
commit 6c3c9913db
2 changed files with 11 additions and 6 deletions

View File

@@ -101,6 +101,13 @@ def test_openapi_agent_role_endpoint_descriptions_exist() -> None:
)
def test_openapi_agent_heartbeat_requires_no_request_body() -> None:
"""Authenticated heartbeats should infer identity from token without payload."""
schema = app.openapi()
op = schema["paths"]["/api/v1/agent/heartbeat"]["post"]
assert "requestBody" not in op
def test_openapi_agent_tool_endpoints_include_llm_hints() -> None:
"""Tool-facing agent endpoints should expose structured usage hints and operation IDs."""
schema = app.openapi()