Esempio n. 1
0
 def remove(self, statement_text):
     """
     Removes the statement that matches the input text.
     Removes any responses from statements where the response text matches
     the input text.
     """
     raise AdapterNotImplementedError()
Esempio n. 2
0
 def filter(self, **kwargs):
     """
     Returns a list of objects from the database.
     The kwargs parameter can contain any number
     of attributes. Only objects which contain
     all listed attributes and in which all values
     match for all listed attributes will be returned.
     """
     raise AdapterNotImplementedError()
Esempio n. 3
0
 def update(self, statement):
     """
     Modifies an entry in the database.
     Creates an entry if one does not exist.
     """
     raise AdapterNotImplementedError()
Esempio n. 4
0
 def find(self, statement_text):
     """
     Returns a object from the database if it exists
     """
     raise AdapterNotImplementedError()
Esempio n. 5
0
 def count(self):
     """
     Return the number of entries in the database.
     """
     raise AdapterNotImplementedError()
Esempio n. 6
0
 def process_response(self, input_value):
     """
     Takes an input value.
     Returns an output value.
     """
     raise AdapterNotImplementedError()
Esempio n. 7
0
 def should_answer(self, text):
     raise AdapterNotImplementedError()
Esempio n. 8
0
 def insert(self, key):
     """
     Creates a new entry in the database.
     """
     raise AdapterNotImplementedError()
Esempio n. 9
0
 def get(self, input_statement, statement_list=None):
     """
     This method should be overridden with one to select a match
     based on the input statement.
     """
     raise AdapterNotImplementedError()
Esempio n. 10
0
 def get(self, text, list_of_statements, current_conversation=None):
     raise AdapterNotImplementedError()
Esempio n. 11
0
 def process(self, statement):
     """
     Method that takes an input statement and returns
     a statement as output.
     """
     raise AdapterNotImplementedError()
Esempio n. 12
0
 def process_input(self):
     """
     Returns data retrieved from the input source.
     """
     raise AdapterNotImplementedError()
Esempio n. 13
0
 def get_response(self):
     raise AdapterNotImplementedError()
Esempio n. 14
0
 def get_random(self):
     """
     Returns a random statement from the database
     """
     raise AdapterNotImplementedError()
Esempio n. 15
0
 def process(self, text):
     raise AdapterNotImplementedError()
Esempio n. 16
0
 def drop(self):
     """
     Drop the database attached to a given adapter.
     """
     raise AdapterNotImplementedError()
Esempio n. 17
0
 def get(self, text, statement_list, current_conversation):
     raise AdapterNotImplementedError()