MCPcopy Index your code
hub / github.com/MetapriseAI/OrgKernel / suspend_identity

Function suspend_identity

src/orgkernel/pyapi/router.py:333–342  ·  view source on GitHub ↗

Suspend an AgentIdentity (recoverable).

(
    agent_id: str,
    db: Annotated[AsyncSession, Depends(get_db)],
)

Source from the content-addressed store, hash-verified

331 description="Suspend an AgentIdentity (recoverable via /reactivate).",
332)
333async def suspend_identity(
334 agent_id: str,
335 db: Annotated[AsyncSession, Depends(get_db)],
336) -> AgentIdentityOut:
337 """Suspend an AgentIdentity (recoverable)."""
338 svc = AgentIdentityService(db)
339 try:
340 return await svc.suspend(agent_id)
341 except ValueError as e:
342 raise HTTPException(status_code=404, detail=str(e))
343
344
345@_identity.post(

Callers

nothing calls this directly

Calls 2

suspendMethod · 0.95

Tested by

no test coverage detected