Ejemplo n.º 1
0
    def Close(self, req, context):
        print 'V3 ', 'Closing for ', req.session_id, req.agent_key
        talk_stat = provider_pb2.TalkStat()
        talk_stat.session_key = req.session_id
        talk_stat.agent_key = req.agent_key

        return talk_stat
Ejemplo n.º 2
0
 def Close(self, req, context):
     print 'Closing for ', req.session_id, req.agent_key
     talk_stat = provider_pb2.TalkStat()
     talk_stat.session_key = req.session_id
     talk_stat.agent_key = req.agent_key
     dp = sds_pb2.DialogueParam()
     dp.session_key = req.session_id
     self.sds_stub.Close(dp)
     return talk_stat
Ejemplo n.º 3
0
    def Close(self, req, context):
        print 'Closing for ', req.session_id, req.agent_key
        talk_stat = provider_pb2.TalkStat()
        talk_stat.session_key = req.session_id
        talk_stat.agent_key = req.agent_key

        ses = sds_pb2.DialogueSessionKey()
        ses.session_key = req.session_id
        self.sds_stub.Close(ses)
        return talk_stat