View Source Replicate.Deployments.Behaviour behaviour (Replicate v1.3.0)

Documentation for the Deployment Behaviour.

Link to this section Summary

Link to this section Callbacks

Link to this callback

create_prediction(t, input, webhook, webhook_completed, webook_event_filter, stream)

View Source
@callback create_prediction(
  Replicate.Deployments.Deployment.t(),
  input :: %{string: any()},
  webhook :: [String.t()],
  webhook_completed :: [String.t()],
  webook_event_filter :: [String.t()],
  stream :: boolean()
) :: {:ok, Replicate.Predictions.Prediction.t()} | {:error, String.t()}
@callback get(String.t()) ::
  {:ok, Replicate.Deployments.Deployment.t()} | {:error, String.t()}