Handle Cancel Session

Cancel ongoing agent response for a session.

Args: request: The FastAPI request session_id: The ID of the session to cancel

Returns: CancelResponse with cancellation status

Path parameters

session_idstringRequired

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Response

Successful Response
session_idstring
cancelled_agentsinteger
total_agentsinteger
statusstring or nullDefaults to cancelled

Errors