This repository was archived by the owner on Jun 17, 2024. It is now read-only.
added intent validator, intent post processor, context handler and de…#24
Open
manojkumar1412 wants to merge 1 commit intohowdyai:masterfrom
Open
added intent validator, intent post processor, context handler and de…#24manojkumar1412 wants to merge 1 commit intohowdyai:masterfrom
manojkumar1412 wants to merge 1 commit intohowdyai:masterfrom
Conversation
…faultEars 1. Context Handler - A context handler interface to get the context object and send it to wit, It has a function with below signature function getContext(bot, message); - return context object 2. defaultEars - If wit fails to give any intent then this may help to do some processing over wit, may be a regex based botkit defaultEars can be used to do regex matching if wit fails 3. validateIntent - a Validate Intent interface to validate the intent from wit, it requires to do some validation over it. function validateIntent(entities) - return true if valid else false 4. postProcessIntent - a post process intent interface to do some post processing over wit intent function postProcessIntent(entities) - return entities after post processing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…faultEars
It has a function with below signature
function getContext(bot, message); - return context object
may be a regex based botkit defaultEars can be used to do regex matching if wit fails
it requires to do some validation over it.
function validateIntent(entities) - return true if valid else false
function postProcessIntent(entities) - return entities after post processing