Skip to content

Commit

Permalink
# Bypassing context switch when entities have the same type
Browse files Browse the repository at this point in the history
  • Loading branch information
maurok committed Jun 1, 2017
1 parent 0fbd43b commit 191f940
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private static async Task<ActionExecutionContext> RunActions(ILuisService luisSe
{
Console.WriteLine($"Cannot execute action '{newActionDefinition.FriendlyName}' in the context of '{currentActionDefinition.FriendlyName}' - continuing with current action");
}
else
else if (!intentAction.GetType().Equals(queryResult.NewAction.GetType()))
{
var valid = LuisActionResolver.UpdateIfValidContextualAction(queryResult.NewAction, intentAction, out isContextual);
if (!valid && isContextual)
Expand Down

0 comments on commit 191f940

Please sign in to comment.