コード例 #1
0
    def create_tracker(self, sender_id):
        """Creates a new tracker for the sender.

        The tracker is initially listening."""

        tracker = self._init_tracker(sender_id)
        tracker.update(ActionExecuted(ACTION_LISTEN_NAME))
        self.save(tracker)
        return tracker
コード例 #2
0
ファイル: tracker_store.py プロジェクト: wbj0110/rasa_core
    def create_tracker(self, sender_id, append_action_listen=True):
        """Creates a new tracker for the sender_id.

        The tracker is initially listening."""

        tracker = self.init_tracker(sender_id)
        if append_action_listen:
            tracker.update(ActionExecuted(ACTION_LISTEN_NAME))
        self.save(tracker)
        return tracker