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