public static List <Func <T, bool> > GenerateRules <T>(this List <Rule> rules)
 {
     return(RuleCompiler.CompileRules <T>(rules));
 }
Esempio n. 2
0
 public Memory(ChatbotConfig cfg, ChatbotRuleConfig rules)
 {
     responses = RuleCompiler.CompileRules(rules.responseRules, cfg);
 }