Created
January 20, 2019 10:45
-
-
Save AndyButland/ad0bcf8bc178bf43fd10350f8520e943 to your computer and use it in GitHub Desktop.
This file contains 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
public abstract class BaseHandleIntentStrategy | |
{ | |
public abstract string IntentName { get; } | |
public abstract Task HandleMessage(ITurnContext turnContext, ConversationData conversationData, IDictionary<string, object> entities); | |
protected static string GetStringEntityValue(IDictionary<string, object> entities, string key) | |
{ | |
return entities[key] as string; | |
} | |
... | |
protected void SaveConversationData(ConversationData conversationData, string entityName) | |
{ | |
conversationData.LastRecognisedIntent = IntentName; | |
conversationData.LastRecognisedEntityPerson = entityName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
okay thanks a lot, im found your github base on that link