I define a Vertex AI pipeline thus:
@dsl.pipeline
def pipe_pipeline(arg1: str, arg2: str) -> str:
...
compile it:
compiler.Compiler().compile(pipe_pipeline, 'pipeline.yaml')
and submit it:
ml_pipeline_job = aiplatform.PipelineJob(
display_name='pipeline.yaml',
template_path='pipeline.yaml',
pipeline_root=PIPELINE_ROOT,
parameter_values={"arg1": arg1, "arg2": arg2},
enable_caching=False
)
but how do I retrieve the output -> str:
in the pipeline definition?