dialogflow-python-client icon indicating copy to clipboard operation
dialogflow-python-client copied to clipboard

AttributeError: 'module' object has no attribute 'UserEntityEntry'

Open dajor opened this issue 8 years ago • 0 comments

File "tt.py", line 40, in main apiai.UserEntityEntry('Firefox', ['Firefox']), AttributeError: 'module' object has no attribute 'UserEntityEntry'

In the example

def main(): ai = apiai.ApiAI(CLIENT_ACCESS_TOKEN,'')

 # some unuque session id for user identification
 session_id = uuid.uuid4().hex

 entries = [
     apiai.UserEntityEntry('Firefox', ['Firefox']),
     apiai.UserEntityEntry('XCode', ['XCode']),
     apiai.UserEntityEntry('Sublime Text', ['Sublime Text'])
 ]

dajor avatar Nov 22 '17 16:11 dajor