You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to set up a custom logic adapter, but somehow im getting AttributeError: 'int' object has no attribute 'confidence'
im following the exact example provided on the docs.. could someone point out what im doing wrong..
This is my return of the def process function on my logic adapter
if response.status_code == 200:
confidence = 1
else:
confidence = 0
info = data.get('data', 'unavailable')
response_statement = Statement('The current info is {}'.format(info))
return confidence, response_statement
The text was updated successfully, but these errors were encountered:
Im trying to set up a custom logic adapter, but somehow im getting
AttributeError: 'int' object has no attribute 'confidence'
im following the exact example provided on the docs.. could someone point out what im doing wrong..
This is my return of the def process function on my logic adapter
The text was updated successfully, but these errors were encountered: