Obtain TextGen from a node
Hi,
We are in the need of retrieving the text generated by TextGen inside a behavior's method. This was the fragment that was used to work until 3.4:
TextGenerationResult result = TextGen.generateText(node);
string content = (string) result.getResult();
TextGenerationResult is no longer available in MPS 3.4 and the generateText method has been removed. What is the suggested alternative?
Thanks,
manuele
Please sign in to leave a comment.
OK, found it.
I guess
string content = TextGeneratorEngine.generateText(node);
will do it.