Uses of Class
org.apache.nlpcraft.model.NCResult
-
Packages that use NCResult Package Description org.apache.nlpcraft.model Contains main API for defining data models. -
-
Uses of NCResult in org.apache.nlpcraft.model
Methods in org.apache.nlpcraft.model that return NCResult Modifier and Type Method Description static NCResult
NCResult. html(String html)
Createshtml
result.static NCResult
NCResult. json(String json)
Createsjson
result.default NCResult
NCModel. onContext(NCContext ctx)
A callback that is called when a fully assembled query context is ready.default NCResult
NCModel. onError(NCContext ctx, Throwable e)
A callback that is called when intent callback failed with unexpected exception.default NCResult
NCModel. onRejection(NCIntentMatch ctx, NCRejection e)
A callback that is called when intent callback threwNCRejection
exception.default NCResult
NCModel. onResult(NCIntentMatch ctx, NCResult res)
A callback that is called when successful result is obtained from the intent callback and right before sending it back to the caller.static NCResult
NCResult. text(String txt)
Createstext
result.static NCResult
NCResult. yaml(String yaml)
Createsyaml
result.Methods in org.apache.nlpcraft.model with parameters of type NCResult Modifier and Type Method Description default NCResult
NCModel. onResult(NCIntentMatch ctx, NCResult res)
A callback that is called when successful result is obtained from the intent callback and right before sending it back to the caller.
-