From 9e72f2c0f432a5007ac598c650feb91acce3fe4a Mon Sep 17 00:00:00 2001 From: Rohan Gujarathi Date: Tue, 4 Mar 2025 10:35:11 -0800 Subject: [PATCH] pipeline definition function doc update --- src/sagemaker/workflow/pipeline.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,