Exemplo n.º 1
0
    def test_store_conversation(self):
        client = TestClient()
        client_context = client.create_client_context("user1")

        conversation = Conversation(client_context)

        question1 = Question.create_from_text(client_context, "Hello There")
        question1.sentence(0).response = "Hi"
        conversation.record_dialog(question1)

        convo_store = ConversationStore()
        with self.assertRaises(NotImplementedError):
            convo_store.store_conversation(client_context, conversation)
Exemplo n.º 2
0
 def __init__(self, storage_engine):
     LoggerStore.__init__(self, storage_engine)
     ConversationStore.__init__(self)
Exemplo n.º 3
0
 def __init__(self, storage_engine):
     RedisStore.__init__(self, storage_engine)
     ConversationStore.__init__(self)
Exemplo n.º 4
0
 def __init__(self, storage_engine):
     FileStore.__init__(self, storage_engine)
     ConversationStore.__init__(self)
Exemplo n.º 5
0
 def __init__(self, storage_engine):
     MongoStore.__init__(self, storage_engine)
     ConversationStore.__init__(self)