ParameterTypeDescription
messageOptional[Union[str, Dict[str, Any], List[Any], BaseModel]]Primary input message (can be any format)
previous_step_contentOptional[Any]Content from the last step
previous_step_outputsOptional[Dict[str, StepOutput]]All previous step outputs by name
additional_dataOptional[Dict[str, Any]]Additional context data
imagesOptional[List[ImageArtifact]]Media inputs - images (accumulated from workflow input and previous steps)
videosOptional[List[VideoArtifact]]Media inputs - videos (accumulated from workflow input and previous steps)
audioOptional[List[AudioArtifact]]Media inputs - audio (accumulated from workflow input and previous steps)

Helper Functions

MethodReturn TypeDescription
get_step_content(step_name: str)Optional[Union[str, Dict[str, str]]]Get content from a specific step by name
get_all_previous_content()strGet all previous step content combined
get_last_step_content()Optional[str]Get content from the immediate previous step