diff --git a/src/sagemaker/workflow/pipeline.py b/src/sagemaker/workflow/pipeline.py index 62167b96e7..9749014531 100644 --- a/src/sagemaker/workflow/pipeline.py +++ b/src/sagemaker/workflow/pipeline.py @@ -383,7 +383,11 @@ def start( ) def definition(self) -> str: - """Converts a request structure to string representation for workflow service calls.""" + """Converts a request structure to string representation for workflow service calls. + + Returns: + A JSON formatted string of pipeline definition. + """ compiled_steps = StepsCompiler( pipeline_name=self.name, sagemaker_session=self.sagemaker_session,