Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Prolog and Patterns

In your recipe_selection.pl file, add the following rules for applying the corresponding filters to the new entities we introduced above. You should define four applyFilter/4 rules where the first argument is instantiated with, respectively, ‘excludeingredient', 'excludeingredienttype', 'excludedietaryrestriction', and 'excludecuisine'. You should note that to implement these rules it is sufficient to simply require the opposite (the negation) of the basic condition that you used for the rule for 'ingredient', etc.

Visuals

You can update the visuals based on what you think will help the user the most. Think about how you can support the implemented capability visually.

Test it Out

Try to filter by excluding an ingredient. Verify that the ingredient is not listed on the a50recipeConfirm page to ensure that the ingredient is not present in a recipe you select. Verify that your agent is also able to filter recipes based on the exclusion of a cuisine or dietary restriction.

  • No labels