Skip to content
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

[EXTEND] Parse partial responses #132

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

AlexanderKanakis
Copy link
Collaborator

@AlexanderKanakis AlexanderKanakis commented Jan 27, 2022

Instructions

Make sure that the correct version of apps-engine is installed by running npm install @rocket.chat/apps-dialogflow

Custom Payloads:

Partial responses will not be able to handle payloads that require sending additional requests to the DF agent for any non-FINAL responses (the final message of a stream).

Currently supported Custom Payloads:

  1. df_set_timeout
  2. change_language_code
  3. drop_queue

@@ -1,6 +1,6 @@
{
"devDependencies": {
"@rocket.chat/apps-engine": "WideChat/Rocket.Chat.Apps-engine.git#v1.29.2",
"@rocket.chat/apps-engine": "git+https://github.com/WideChat/Rocket.Chat.Apps-engine.git#dialogflow_branch",
Copy link

@ear-dev ear-dev Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: this is fine for testing, but we need to be careful that we revert or fix this before we merge.

@@ -28,11 +28,116 @@
"js-tokens": "^4.0.0"
}
},
"@google-cloud/dialogflow-cx": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do all of these things need to also go into package.json?

I'm seeing this error when I try to deploy with rc-apps:
Error: Cannot find module '@rocket.chat/apps-engine/node_modules/@google-cloud/dialogflow-cx'

Copy link
Collaborator Author

@AlexanderKanakis AlexanderKanakis Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not found a way to remove that error. If I point the app to the correct location of the module, the app will not deploy.

With the current set-up we get the error, but the app can deploy.

@ear-dev ear-dev requested a review from Shailesh351 February 11, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants