@step
or @pipeline
decorator respectively. This is the API that is used primarily throughout the ZenML docs and examples.BaseStep
and BasePipeline
directly. Internally, both APIs will result in similar definitions, so it is entirely up to you which API to use.zenml.steps.BaseStep
and implement its entrypoint()
method to perform the logic of the step.zenml.pipelines.BasePipeline
and implementing its connect()
method:@enable_<INTEGRATION>
decorators. Similar to the functional API, you can do this in the class-based API by adding a decorator to your BaseStep
subclass: