Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Conversation

@hlely
Copy link
Contributor

@hlely hlely commented Jul 31, 2018

Added optional parameters : memory and log_level, to the dialog endpoint
Added a proxy option
Removed audio endpoint

@jhoudan jhoudan requested a review from marian-andre August 6, 2018 15:19
"language" => $language,
"conversation_token" => $conversation_token,
"memory" => $memory
"memory" => $memory,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you set the memory field only if it was given as argument please ? It may replace the existing memory with an empty one otherwise

Copy link
Contributor

Choose a reason for hiding this comment

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

@dbousque No because memory is set to NULL by default

Copy link
Contributor

Choose a reason for hiding this comment

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

It is not correct to pass a null memory and expect nothing to happen :) According to the bot-builder API, it could very well reset the memory, it is not semantically wrong, so let's just make things easier. Someone might think it was an error to set it to null instead of {} for example, and correcting that, he would break everything.

Copy link
Contributor

@marian-andre marian-andre Aug 8, 2018

Choose a reason for hiding this comment

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

Usage of these parameter is described in the documentation (Wiki)
Regarding the BotBuilderAPI project code, the memory parameter is taken in account only if its value is "true" (so, not equal to null). This code works

Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean by "the memory parameter is taken in account only if its value is 'true'" ? The memory argument is expected to be a json object.

@marian-andre
Copy link
Contributor

good for me

@hlely hlely merged commit 7b15327 into SAP-archive:master Aug 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants