v2
chat
chat

Cancel Session Task

Cancel the active streaming task for a session.

Publishes a cancel event to the executor via RabbitMQ FANOUT, then polls Redis until the task status flips from running or a timeout (5 s) is reached. Returns only after the cancellation is confirmed.

post/api/chat/sessions/{session_id}/cancel

Path parameters

session_idstring required

Response

Successful Response

cancelledboolean required
reasonstring nullable

Changes