Is it somehow possible to save the name of a pattern macro, that was used during patternmatching, in a variable to put it in an oob-message for example for debugging?
Right now i have a lot of different pattern macros, that analyse the intent behind a user question, for example “places_together”, “activity_together” or “personal_opinion”.
The pattern macros may repeat themselves from one topic to the other, so that i can ask for ^activity_together with person1 and ^activity_together with person2.
My go to solution was to have a $$intent variable after each call of a specific patternmacro and type out the name of the pattern macro myself.
Like this:
topic: ~brother_t ()
#specific questions/answers depending on general context
u: () ^keep() ^refine()
# name
a: (^names()) $$intent=names Leon
# age
a: (^age()) $$intent=age Der ist 12.
Is there a more elegant way to do this? It would be already helpful if could somehow memorise the pattern macro name and do something like $$intent=_0. Would save a lot of typing
Or maybe i can’t see the forest for the trees and there is a completely different solution.