Cancel a prediction.
(key: IntegrationTaskKey, params: { id: string })
| 10 | |
| 11 | /** Cancel a prediction. */ |
| 12 | cancel(key: IntegrationTaskKey, params: { id: string }): ReplicateReturnType<Prediction> { |
| 13 | return this.runTask( |
| 14 | key, |
| 15 | (client) => { |
| 16 | return client.predictions.cancel(params.id); |
| 17 | }, |
| 18 | { |
| 19 | name: "Cancel Prediction", |
| 20 | params, |
| 21 | properties: [{ label: "Prediction ID", text: params.id }], |
| 22 | } |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | /** Create a new prediction. */ |
| 27 | create( |