Cancel message generation
cancel_message_generationMoves a queued, enriching or composing
generation to the terminal state canceled with canceled_reason = caller_request.
Refund rule: the debit is returned if composition has not started (status is
queued or enriching); once composing has started the cancel is accepted but the
credits are not returned. Canceling an already canceled generation is idempotent and
returns it unchanged. Canceling a succeeded or failed generation is
409 not_cancelable. An expired id is 410 generation_expired.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "cancel_message_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The generation id returned by `POST /api/v1/message-intelligence`. |