cancel_job
Cancel an agent job by specifying its unique ID and optionally provide a reason for cancellation. Ideal for managing and terminating asynchronous tasks within the Agent Jobs system.
Instructions
Cancels an agent job by its ID.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
job_id | Yes | The unique identifier of the job to be canceled. Example: 'job-12345'. | |
reason | No | An optional reason explaining why the job is being canceled. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"job_id": {
"description": "The unique identifier of the job to be canceled. Example: 'job-12345'.",
"type": "string"
},
"reason": {
"description": "An optional reason explaining why the job is being canceled.",
"type": "string"
}
},
"required": [
"job_id"
],
"type": "object"
}