This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-510
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-510 by this push:
new 91c5b7f6 Validation fixes.
91c5b7f6 is described below
commit 91c5b7f6831d7dca69c01c06f0ee26081eed4c56
Author: Sergey Kamov <[email protected]>
AuthorDate: Mon Aug 8 10:54:05 2022 +0300
Validation fixes.
---
.../main/scala/org/apache/nlpcraft/validation/NCFiredIntent.scala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCFiredIntent.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCFiredIntent.scala
index 7879a92a..aa49f2d8 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCFiredIntent.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCFiredIntent.scala
@@ -5,6 +5,8 @@ import org.apache.nlpcraft.*
/**
* */
trait NCFiredIntent:
+ type Arguments = List[List[NCEntity]]
+
/**
*
* @return */
@@ -13,9 +15,9 @@ trait NCFiredIntent:
/**
*
* @return */
- def getCallbackArguments: List[List[NCEntity]]
+ def getCallbackArguments: Arguments
/**
*
* @return */
- def getCallback: List[List[NCEntity]] => NCResult
+ def getCallback: Arguments => NCResult