rasa/core/server.py
async def retrieve_story(request: Request, sender_id: Text):
        """Get an end-to-end story corresponding to this conversation."""

        if not app.agent.tracker_store:
            raise ErrorResponse(503, "NoTrackerStore",
                                "No tracker store available. Make sure to "
                                "configure "
                                "a tracker store when starting the server.")

        # retrieve tracker and set to requested state
        tracker = app.agent.tracker_store.get_or_create_tracker(sender_id)
        if not tracker:
            raise ErrorResponse(503,
                                "NoDomain",
                                "Could not retrieve tracker. Most likely "
                                "because there is no domain set on the agent.")

        until_time = utils.float_arg(request, 'until')
        if until_time is not None:
            tracker = tracker.travel_back_in_time(until_time)

        # dump and return tracker
        state = tracker.export_stories(e2e=True)
        return response.text(state)
Get an end-to-end story corresponding to this conversation.
Get an end-to-end story corresponding to this conversation.
Get an end - to - end story corresponding to this conversation .
async def retrieve_story(request: Request, sender_id: Text):
        if not app.agent.tracker_store:
            raise ErrorResponse(503, "NoTrackerStore",
                                "No tracker store available. Make sure to "
                                "configure "
                                "a tracker store when starting the server.")
        tracker = app.agent.tracker_store.get_or_create_tracker(sender_id)
        if not tracker:
            raise ErrorResponse(503,
                                "NoDomain",
                                "Could not retrieve tracker. Most likely "
                                "because there is no domain set on the agent.")
        until_time = utils.float_arg(request, 'until')
        if until_time is not None:
            tracker = tracker.travel_back_in_time(until_time)
        state = tracker.export_stories(e2e=True)
        return response.text(state)
async def retrieve_story ( request : Request , sender_id : Text ) : if not app . agent . tracker_store : raise ErrorResponse ( 503 , "NoTrackerStore" , "No tracker store available. Make sure to " "configure " "a tracker store when starting the server." ) tracker = app . agent . tracker_store . get_or_create_tracker ( sender_id ) if not tracker : raise ErrorResponse ( 503 , "NoDomain" , "Could not retrieve tracker. Most likely " "because there is no domain set on the agent." ) until_time = utils . float_arg ( request , 'until' ) if until_time is not None : tracker = tracker . travel_back_in_time ( until_time ) state = tracker . export_stories ( e2e = True ) return response . text ( state )
Get an end-to-end story corresponding to this conversation.
Get an end - to - end story corresponding to this conversation .
"""Get an end-to-end story corresponding to this conversation.""" # retrieve tracker and set to requested state # dump and return tracker
request
Request
sender_id
Text