-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added number of entities as parameter for message #100
Conversation
Fixed author email
Fixed author email
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this!
wit/wit.py
Outdated
@@ -71,10 +71,12 @@ def __init__(self, access_token, actions=None, logger=None): | |||
self.logger.error('Stories and POST /converse have been deprecated. This will break in February 2018!') | |||
self.actions = validate_actions(self.logger, actions) | |||
|
|||
def message(self, msg, context=None, verbose=None): | |||
def message(self, msg, context=None, num=None, verbose=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
num -> n
, let's keep the naming consistent between the Python keyword arguments and the HTTP API
wit/wit.py
Outdated
params = {} | ||
if verbose: | ||
params['verbose'] = True | ||
if num: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's test for is not None
instead, to allow 0
Added number of entities returned as a parameter for .message()