rasa/core/server.py
async def replace_events(request: Request, sender_id: Text):
        """Use a list of events to set a conversations tracker to a state."""

        request_params = request.json
        verbosity = event_verbosity_parameter(request,
                                              EventVerbosity.AFTER_RESTART)

        tracker = DialogueStateTracker.from_dict(sender_id,
                                                 request_params,
                                                 app.agent.domain.slots)
        # will override an existing tracker with the same id!
        app.agent.tracker_store.save(tracker)
        return response.json(tracker.current_state(verbosity))
Use a list of events to set a conversations tracker to a state.
Use a list of events to set a conversations tracker to a state.
Use a list of events to set a conversations tracker to a state .
async def replace_events(request: Request, sender_id: Text):
        request_params = request.json
        verbosity = event_verbosity_parameter(request,
                                              EventVerbosity.AFTER_RESTART)
        tracker = DialogueStateTracker.from_dict(sender_id,
                                                 request_params,
                                                 app.agent.domain.slots)
        app.agent.tracker_store.save(tracker)
        return response.json(tracker.current_state(verbosity))
async def replace_events ( request : Request , sender_id : Text ) : request_params = request . json verbosity = event_verbosity_parameter ( request , EventVerbosity . AFTER_RESTART ) tracker = DialogueStateTracker . from_dict ( sender_id , request_params , app . agent . domain . slots ) app . agent . tracker_store . save ( tracker ) return response . json ( tracker . current_state ( verbosity ) )
Use a list of events to set a conversations tracker to a state.
Use a list of events to set a conversations tracker to a state .
"""Use a list of events to set a conversations tracker to a state.""" # will override an existing tracker with the same id!
request
Request
sender_id
Text