Closed manish-chitre closed 3 years ago
@Chitma you're right, when trying to use LUISGen CLI with a LUIS model that contains subentities, you'll get the error that you have posted. This is because the CLI is a legacy CLI now, the Bot Framework team has moved onto replacing the multiple, separate CLIs we had with the new BF CLI. You can see note of this switchover in the LUISGen readme as well as in the BF CLI Porting Map.
LUISGen, I believe should only work for v2 of LUIS API, however the current API version is v3.
To generate a strongly typed C# class from an exported v3 LUIS model use bf luis:generate:cs
command in BF CLI.
npm i -g @microsoft/botframework-cli
bf luis:generate:cs -i <YOUR-EXPORTED-LUIS-MODEL> -o <OUTPUT-FILE>
Example:
bf luis:generate:cs -i .\ash-pizza-model-with-subentities.json -o AshPizza.cs
Tool
Name: LuisGen Version: 2.2.0 OS: Windows 10
Describe the bug
LuisGen doesn't create a C# class when I use a exported LUIS file that has sub entities.
To Reproduce
Steps to reproduce the behavior:
Any log messages given by the failure
Expected/desired behavior
Versions