Fetch a prediction.
(key: IntegrationTaskKey, params: { id: string })
| 73 | |
| 74 | /** Fetch a prediction. */ |
| 75 | get(key: IntegrationTaskKey, params: { id: string }): ReplicateReturnType<Prediction> { |
| 76 | return this.runTask( |
| 77 | key, |
| 78 | (client) => { |
| 79 | return client.predictions.get(params.id); |
| 80 | }, |
| 81 | { |
| 82 | name: "Get Prediction", |
| 83 | params, |
| 84 | properties: [{ label: "Prediction ID", text: params.id }], |
| 85 | } |
| 86 | ); |
| 87 | } |
| 88 | |
| 89 | /** List all predictions. */ |
| 90 | list(key: IntegrationTaskKey): ReplicateReturnType<Page<Prediction>> { |