问题
I have problems when i try mapped the entities from LUIS. First, through a method, I complete the entities from LUIS, but, the bot ask me again about the entities that are already stuffed.
var state = new BookMeetingRoomForm();
var entities = new List<EntityRecommendation>(result.Entities);
if (entities.Count > 0)
{
FillEntityNewBookFromLuis(result, out state);
entities = null;
}
var formDialog = new FormDialog<BookMeetingRoomForm>(
state, BookMeetingRoomForm.BuildForm,
FormOptions.PromptInStart, entities);
context.Call(formDialog, Callback);
Nor does it work for me when mapping the entities directly, the error occurs:
Newtonsoft.Json.Linq.JArray' in Assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' is not marked as serializable.
And the class is marked as [serializable]
Has anyone ever happened to you?
https://github.com/jesusom/Developments
thanks in advance:
来源:https://stackoverflow.com/questions/44544059/problems-mapping-in-luis-entities-into-form-flow