AutoEntity
Annotation | <AutoEntity> |
---|---|
Definition | Specifies that known entity values in expressions must be auto tagged with their respective entity type names. |
Occurrence | One <AutoEntity> element MAY occur as children of <Intent> element |
This element is a convenience adapter that can automatically label entity type names on entity values specified within expression values.
SIML
<Intent Name="favMusicGenreIntent">
<Expression Value="I like jazz music"/>
<AutoEntity/>
<Response>
I too like <Entity Get="sys.music.genre"/> music.
</Response>
</Intent>
In the intent above the value jazz
get automatically replaced with @sys.music.genre
as the intent declares an <AutoEntity/>
element.
Note
The AutoEntity
adapter may create multiple expressions depending on the entity values that exists within expression values. Hence, usage of AutoEntity is usually discouraged as it may result in conflicts between similar intents.