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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7f58c2f  WIP
7f58c2f is described below

commit 7f58c2f34d7340374fc378fabe57e5e000e1c9f1
Author: Aaron Radzinski <[email protected]>
AuthorDate: Wed Dec 8 11:53:09 2021 -0800

    WIP
---
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java    | 2 +-
 .../{NCModelConfigFileAdapter.java => NCModelConfigAdapter.java}  | 2 +-
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.java         | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java
index 0eb656b..83b73ec 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.java
@@ -42,7 +42,7 @@ public class NCModelClient {
      * @return
      * @throws NCException
      */
-    Future<NCResult> ask(String txt, Map<String, Object> data, String usrId) {
+    CompletableFuture<NCResult> ask(String txt, Map<String, Object> data, 
String usrId) {
         return null; // TODO
     }
 
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigFileAdapter.java 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigAdapter.java
similarity index 94%
rename from 
nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigFileAdapter.java
rename to nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigAdapter.java
index abd34d4..e9d3b2f 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigFileAdapter.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigAdapter.java
@@ -22,7 +22,7 @@ import java.util.*;
 /**
  *
  */
-public class NCModelConfigFileAdapter extends NCParameterizedAdapter 
implements NCModelConfig {
+public class NCModelConfigAdapter extends NCParameterizedAdapter implements 
NCModelConfig {
     @Override
     public String getId() {
         return null; // TODO
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.java 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.java
index a5249f1..4f193f5 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.java
@@ -27,7 +27,7 @@ import java.util.Collection;
  */
 public class NCResult implements Serializable {
     /** Data Model result text. */
-    private String body;
+    private Object body;
 
     /** Data Model result type. */
     private NCResultType type;
@@ -41,7 +41,7 @@ public class NCResult implements Serializable {
      * @param body Result body.
      * @param type Result type.
      */
-    public NCResult(String body, NCResultType type) {
+    public NCResult(Object body, NCResultType type) {
         assert body != null;
         assert type != null;
 
@@ -61,7 +61,7 @@ public class NCResult implements Serializable {
      *
      * @param body Result body.
      */
-    public void setBody(String body) {
+    public void setBody(Object body) {
         this.body = body;
     }
 
@@ -88,7 +88,7 @@ public class NCResult implements Serializable {
      *
      * @return Result body.
      */
-    public String getBody() {
+    public Object getBody() {
         return body;
     }
 

Reply via email to