Cancel an in-progress background response
Cancels an agent response that is currently processing in the background.
Authorizations
Path Parameters
Response
The response object after cancellation.
The overall status of the response generation. 'completed' means successfully finished, 'failed' means error occurred, 'in_progress' means currently processing, 'cancelled' means user-cancelled, 'queued' means waiting to start, 'incomplete' means partial completion.
completed, failed, in_progress, cancelled, queued, incomplete Input message item: A message with role and content. Use this for user, assistant, system, or developer turns in structured inputs.
- Input message item
- Output message item
- Output audio item
- File search call item
- Computer call item
- Computer call output item
- Web search call item
- Function call item
- Function call output item
- Reasoning item
- Image generation call item
- Code interpreter call item
- Local shell call item
- Local shell call output item
- Shell call item
- Shell call output item
- MCP list tools item
- MCP approval request item
- MCP approval response item
- Tool approval request item
- Tool approval response item
- MCP call item
- Custom tool call item
- Custom tool call output item
- Item reference item
- Compaction item
Function tool definition: Defines a callable function tool. Provide a tool name and parameters schema, with optional description and deferred loading.
Where the request was served, as reported by the serving upstream (the x-mka1-serving-location response header, set by MKA1 Compute's workload gateway or a BYO endpoint that chooses to) or, failing that, the single location the model's registry card declares. Null when neither is known, which is the case for externally hosted models. Absent until a route is known.
The verdict of the organization's groundedness output guardrail, when one judged this response: the score, the claims it found and how the retrieved sources bear on each, and those sources. Absent when no groundedness rule applies or the run retrieved no sources. An answer the rule flagged is returned whole with it; one the rule blocked is a refusal (metadata.guardrail_triggered is groundedness) that carries it too.