Package org.apache.nlpcraft.model
Interface NCTokenPredicateContext
-
public interface NCTokenPredicateContext
Context passed into custom user-defined IDL term token predicate.Read full documentation in Intent Matching section and review examples.
- See Also:
NCTokenPredicateResult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<NCMetadata>
getIntentMeta()
Gets metadata of the intent this token predicate is associated with, if available.NCRequest
getRequest()
Gets information about the user request.NCToken
getToken()
Gets a token this predicate is matching against.
-
-
-
Method Detail
-
getRequest
NCRequest getRequest()
Gets information about the user request.- Returns:
- Information about the user request.
-
getToken
NCToken getToken()
Gets a token this predicate is matching against.- Returns:
- Token this predicate is matching against.
-
getIntentMeta
Optional<NCMetadata> getIntentMeta()
Gets metadata of the intent this token predicate is associated with, if available.- Returns:
- Intent metadata, if available.
-
-