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

Method create

integrations/replicate/src/deployments.ts:20–40  ·  view source on GitHub ↗

Create a new prediction with a deployment.

(
    key: IntegrationTaskKey,
    params: {
      deployment_owner: string;
      deployment_name: string;
    } & Parameters<ReplicateClient["deployments"]["predictions"]["create"]>[2]
  )

Source from the content-addressed store, hash-verified

18
19 /** Create a new prediction with a deployment. */
20 create(
21 key: IntegrationTaskKey,
22 params: {
23 deployment_owner: string;
24 deployment_name: string;
25 } & Parameters<ReplicateClient["deployments"]["predictions"]["create"]>[2]
26 ): ReplicateReturnType<Prediction> {
27 return this.runTask(
28 key,
29 (client) => {
30 const { deployment_owner, deployment_name, ...options } = params;
31
32 return client.deployments.predictions.create(deployment_owner, deployment_name, options);
33 },
34 {
35 name: "Create Prediction With Deployment",
36 params,
37 properties: createDeploymentProperties(params),
38 }
39 );
40 }
41
42 /** Create a new prediction with a deployment and await the result. */
43 createAndAwait(

Callers

nothing calls this directly

Calls 3

createMethod · 0.65
runTaskMethod · 0.45

Tested by

no test coverage detected