MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / get

Method get

integrations/replicate/src/predictions.ts:75–87  ·  view source on GitHub ↗

Fetch a prediction.

(key: IntegrationTaskKey, params: { id: string })

Source from the content-addressed store, hash-verified

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>> {

Callers

nothing calls this directly

Calls 1

runTaskMethod · 0.45

Tested by

no test coverage detected