Unregister Agent Endpoint
Deactivate an agent connection by name.
The connection is identified by agent_session_name plus the authenticated user’s id. Returns activeAgents, the number of the caller’s own connections still active in this process; other users’ connections are never counted. Unregistering a name that is not active leaves that count unchanged. With COGNEE_AGENT_MODE=true the server shuts itself down within 60 seconds once no connection of any user is active.
Request Parameters
- agent_session_name (str): The name used when registering the connection. Combined with the authenticated user’s ID to identify which connection to deactivate.
Response
- activeAgents (int): The caller’s own connections still active in this process.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The name used when registering the connection. Combined with the authenticated user's ID to identify which connection to deactivate.
Response
Successful Response