def _user_string(story_step_element: UserUttered, e2e: bool, prefix: Text = "") -> Text: return "* {}{}\n".format(prefix, story_step_element.as_story_string(e2e))
def _text_is_real_message(user_utterance: UserUttered) -> bool: return (not user_utterance.intent or user_utterance.text != user_utterance.as_story_string())
def _checkpoint_string(story_step_element: UserUttered) -> Text: return "> {}\n".format(story_step_element.as_story_string())