Cancel session
cancel_sessionStop an in-progress Gumloop session and abort running streams, transitioning it to failed when queued or processing; completed or failed sessions remain unchanged.
Instructions
Cancel an in-progress session. If the session is currently processing or queued, any running stream is aborted and the session is transitioned to failed. If the session is already completed or failed, its current state is returned unchanged.
The response carries a session envelope but only id, agent_id, and state are populated.
Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| session_id | Yes | ID of the session to cancel. |