Problems mapping in LUIS entities into form flow

浪尽此生 提交于 2019-12-23 22:24:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!