-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add sender_id
argument shell and interactive command line tools
#3975
Comments
Can I ask why you would need this though? What would you need to test with respect to the sender id in interactive learning or when just chatting to the bot? |
Hey, similar to the custom |
You could probably use some dummy information for the default sender id for testing. I'll discuss this enhancement with our team though and let you know whether we think it makes sense to add |
Not having the ability to set the sender_id at run time has also caused a lot of headache for our team. For example, if someone asks a bot, "when is the next holiday?" we would expect a different response for a user in Germany versus a user in the United States. The only way to test that these cases are working properly during interactive training is to change the sender_id to one associated with a user in the various countries. |
Ok, we discussed this in the team and we think that would be a great contribution 👍 @sjtilney @djwessel Would you be up for doing a pull request on this? |
@wochinge Great! Thanks for the feedback. I should be able to set up a pull request in the next few days. |
@djwessel That's amazing! Thanks for proposing this, discussing and contributing 💯 Let me know if you need any help on the way (you can also tag me here and I can have a look at an early draft 👍 ) |
I need to pass |
@DiegoProtec Sorry, for the late response. I was on vacation.
Yes, that we would definitely be possible, but as I discussed with the team, the preferred solution would be to pass this information via the command line. Hence, I would suggest to add a parameter |
Thank you, I solved this, passed this attribute in my tracker_store in my endpoints.yml, by the environment variable.
…________________________________
De: Tobias Wochinger <[email protected]>
Enviado: sexta-feira, 13 de setembro de 2019 09:32
Para: RasaHQ/rasa <[email protected]>
Cc: Diego de Santana Fernandes <[email protected]>; Mention <[email protected]>
Assunto: Re: [RasaHQ/rasa] Add `sender_id` argument shell and interactive command line tools (#3975)
@DiegoProtec<https://github.com/DiegoProtec> Sorry, for the late response. I was on vacation.
It would be possible to adapt the param sender_id on console.py as optional to receive the sender from credentials.yml?
Yes, that we would definitely be possible, but as I discussed with the team, the preferred solution would be to pass this information via the command line. Hence, I would suggest to add a parameter sender_id to configure_app and serve_application and then use this one in record_messages. Do you have any more thoughts on that @tabergma<https://github.com/tabergma> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3975?email_source=notifications&email_token=ABZ2Y2IS5QW6BOQ7C43NXA3QJN26HA5CNFSM4H7NW5MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UYEOI#issuecomment-531202617>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABZ2Y2KM6MSARGR4WYRWTJLQJN26HANCNFSM4H7NW5MA>.
|
Adding a new parameter to the command line sound good 👍 However, I would name it |
@DiegoProtec Could you please clarify your solution a bit or share your pr? I think that would make it easier to discuss your changes :-) |
@DiegoProtec How is it going? Is there anything I can help you with? |
@DiegoProtec What's your current state? can I help you? |
@wochinge Thanks for your attention, I decided to add the sender_id parameter when it is development environment in custom tracker store.
|
hm, do you have a draft pr where I can have a look at the proposed changes? I think that would be easier for giving feedback. |
@DiegoProtec How is it going? If you don't have time, I'd assign it to one of my colleagues |
@ChristinaKoss When you start with it, I'd split in two PRs
|
as far as I know we always expose it as |
The |
The |
Description of Problem:
Both
rasa shell
andrasa interactive
do not support the ability to set thesender_id
field. Instead for shell, thesender_id
is just set to the default value ofdefault
, where as for interactive, the field is set to a uuid. To test stories/run interactive learning with custom actions that rely on thesender_id
field value, the current tools lack the ability to customize this field.Overview of the Solution:
A straightforward solution would be to add a
--sender_id
command line argument torasa shell
andrasa interactive
. This argument would then be passed to the respectiverecord_messages
function, which already supports thesender_id
parameter.Furthermore, the default value for this argument should not change the functionality of the current implementation (shell defaults to
default
and interactive defaults to a uuid).Examples (if relevant):
An example of a custom action that would rely on the value of the
sender_id
is as follows.Currently, when running
rasa shell
, the logged value would beSender id: default
, whereas when runningrasa interactive
, the logged value would beSender id: {some random uuid.uuid4().hex}
.With the proposed change, when the user runs
rasa shell --sender_id unique123
orrasa interactive --sender_id unique123
, the logged value would beSender id: unique123
Blockers (if relevant):
None
Definition of Done:
--sender_id
argument is implemented and meets tests.--sender_id
argument is added to the Command Line Interface docs for both shell and interactive.The text was updated successfully, but these errors were encountered: