Package org.apache.nlpcraft.model
Annotation Type NCIntentSample
-
@Retention(RUNTIME) @Target(METHOD) @Repeatable(NCIntentSampleList.class) public @interface NCIntentSample
Annotation to define one or more samples of the user input that should match a corresponding intent. This annotation can only be used together withNCIntent
orNCIntentRef
annotations on the callback methods. Method can have multiple annotations of this type and each annotation can define multiple input examples.Note that the samples provided by this annotation not only serve the documentation purpose but are also used by
NCTestAutoModelValidator
class from built-in test framework for auto-validation between data models and intents.Read full documentation in Intent Matching section and review examples.
-
-
Element Detail
-
value
String[] value
Gets a list of user input samples that should match corresponding intent. This annotation should be attached the intent callback method.- Returns:
- Set of user input examples that should match corresponding intent.
-
-