This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-490
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-490 by this push:
     new 9daa8de  WIP.
9daa8de is described below

commit 9daa8de91b2fec173a0b9cc43017942d17afd6df
Author: Sergey Kamov <[email protected]>
AuthorDate: Wed Mar 30 13:25:22 2022 +0300

    WIP.
---
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java        | 2 +-
 .../nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala      | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java
index f0ce9dc..957d316 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java
@@ -110,7 +110,7 @@ public class NCModelClient implements AutoCloseable {
      * @param data
      * @param usrId
      * @param saveHistory if true that found intent data added to dialog flow 
(with empty NCResult, bacause callback wasn't called) and STM.
-     *                    if false found intent ignored in history.
+     *                    if false that found intent is not saved in STM and 
dialog flow.
      * @return
      */
     public NCCallbackData findCallback(String txt, Map<String, Object> data, 
String usrId, boolean saveHistory) {
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
index e1431ca..3471963 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
@@ -33,7 +33,9 @@ import scala.jdk.CollectionConverters.*
 import scala.language.postfixOps
 
 /**
-  *
+  * REGULAR - regular request.
+  * SEARCH - if callback is trying to be found. STM and dialog flow processed 
as usual.
+  * SEARCH_NO_HISTORY - if callback is trying to be found. STM and dialog 
processing skipped.
   */
 enum NCIntentSolveType:
     case REGULAR, SEARCH, SEARCH_NO_HISTORY

Reply via email to