Botfuel / botfuel-dialog

Botfuel SDK to build highly conversational chatbots
https://docs.botfuel.io
Other
102 stars 18 forks source link

feat/prompt-reset-entities #257

Closed KevinDepuydt closed 6 years ago

KevinDepuydt commented 6 years ago

Added a new resetEntities method in the PromptDialog, this method will clean entities stored under dialog namespace in bot's brain in the conversation scope.

Usage:

await this.resetEntities(userId);

This method is only for prompt dialogs (and subclasses) as the others kind of dialogs doesn't have entities to clean.

codecov[bot] commented 6 years ago

Codecov Report

Merging #257 into master will increase coverage by 0.01%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #257      +/-   ##
==========================================
+ Coverage   86.51%   86.53%   +0.01%     
==========================================
  Files          84       84              
  Lines        1669     1671       +2     
  Branches      230      230              
==========================================
+ Hits         1444     1446       +2     
  Misses        184      184              
  Partials       41       41
Impacted Files Coverage Δ
packages/botfuel-dialog/src/dialogs/dialog.js 100% <0%> (ø) :arrow_up:
...ckages/botfuel-dialog/src/dialogs/prompt-dialog.js 97.14% <0%> (+0.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e7d4081...4ac2dcd. Read the comment docs.