kfp==2.8.0
kfp-pipeline-spec==0.3.0
kfp-server-api==2.0.5
Example code:
from kfp import dsl
import kfp
@dsl.component
def add(a: float, b: float) -> float:
'''Calculates sum of two arguments'''
return a + b
@dsl.pipeline(
name='Addition pipeline',
description='An example pipeline that performs addition calculations.')
def add_pipeline(
a: float = 1.0,
b: float = 7.0,
):
first_add_task = add(a=a, b=4.0)
second_add_task = add(a=first_add_task.output, b=b)
Source: https://kubeflow-pipelines.readthedocs.io/en/sdk-2.7.0/index.html
Error:
TypeError: Artifacts must have both a schema_title and a schema_version, separated by `@`. Got: float
Error yields at first pipeline definition. I am switching back to 2.7.0