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

Method create

integrations/replicate/src/predictions.ts:27–42  ·  view source on GitHub ↗

Create a new prediction.

(
    key: IntegrationTaskKey,
    params: Parameters<ReplicateClient["predictions"]["create"]>[0]
  )

Source from the content-addressed store, hash-verified

25
26 /** Create a new prediction. */
27 create(
28 key: IntegrationTaskKey,
29 params: Parameters<ReplicateClient["predictions"]["create"]>[0]
30 ): ReplicateReturnType<Prediction> {
31 return this.runTask(
32 key,
33 (client) => {
34 return client.predictions.create(params);
35 },
36 {
37 name: "Create Prediction",
38 params,
39 properties: createPredictionProperties(params),
40 }
41 );
42 }
43
44 /** Create a new prediction and await the result. */
45 createAndAwait(

Callers

nothing calls this directly

Calls 3

createMethod · 0.65
runTaskMethod · 0.45

Tested by

no test coverage detected