public interface NLUService
Modifier and Type | Method and Description |
---|---|
AsyncResult<NLUResult> |
classify(String utterance,
NLUContext context)
Classifies a user utterance.
|
AsyncResult<NLUResult> classify(String utterance, NLUContext context)
AsyncResult
allows the
caller to either block while waiting for a result or register a callback
to be executed when the result is available.utterance
- The user utterance to be classified.context
- The current NLU context, containing request metadata and
the ability to fire trace events.AsyncResult
representing the result of the
classification task.AsyncResult.registerCallback(io.spokestack.spokestack.util.Callback)
Copyright © 2020. All rights reserved.