[docs]defcast_to_run(self,previous_result:pd.DataFrame,*args,**kwargs):logger.info(f"Running prompt maker node - {self.__class__.__name__} module...")# get query and retrieved contents from previous_resultassert("query"inprevious_result.columns),"previous_result must have query column."assert("retrieved_contents"inprevious_result.columns),"previous_result must have retrieved_contents column."query=previous_result["query"].tolist()retrieved_contents=previous_result["retrieved_contents"].tolist()prompt=kwargs.pop("prompt")returnquery,retrieved_contents,prompt