Fork me on GitHub
#clara
<
2020-11-10
>
Busy escaping the comfort zone11:11:49

Hi Clara team, I'm looking for a way to add/remove rules from a LocalSession, I'm not seeing any matching function in http://www.clara-rules.org/apidocs/0.21.0/clojure/index.html any idea if this is possible? Thanks!

Busy escaping the comfort zone12:11:18

(BTW I don't expect to keep any facts within the session prior to manipulating it, I just want to be able to manipulate the rules prior to usage in some tests)

ethanc15:11:37

@narkisr, Clara does not currently support adding or removing productions from a compiled session. I believe that currently the only way to have a session with fewer rules would be to remake the session without providing the rules in question.