Methods
entityMatches(entityopt) → {object}
- Description:
- Returns matches for the specified entity; may be an empty collection. If no entity is specified, returns the map of all entities.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
entity |
string |
<optional> |
name of the entity |
Returns:
The entity match result.
- Type
- object
fullEntityMatches(entityopt) → {object}
- Description:
- Returns full payload matches for the specified entity; may be an empty collection. If no entity is specified, returns the full payload map of all entities.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
entity |
string |
<optional> |
name of the entity |
Returns:
The full entity match result.
- Type
- object
intentMatches() → {Array.<object>}
- Description:
- Returns intent matches if any. Intent matches are returned in descending order of score,
- Source:
Returns:
The intent match results, each match with properties score and intent.
- Type
- Array.<object>
topIntentMatch() → {object}
- Description:
- Returns top intent match (with highest score), if any.
- Source:
Returns:
The top intent match (with properties score and intent)
- Type
- object