View Source Replicate.Models.Behaviour behaviour (Replicate v1.3.0)
Documentation for the Model Behaviour
Link to this section Summary
Link to this section Callbacks
@callback get!(name :: String.t()) :: Replicate.Models.Model.t()
@callback get_latest_version!(Replicate.Models.Model.t()) :: Replicate.Models.Version.t()
@callback get_version!(Replicate.Models.Model.t(), version :: String.t()) :: Replicate.Models.Version.t()
@callback list_versions(Replicate.Models.Model.t()) :: [Replicate.Models.Version.t()]