Roboy / ravestate

✨ Ravestate is Roboy's reactive dialogue state library.
http://roboy.github.io/ravestate
BSD 3-Clause "New" or "Revised" License
25 stars 7 forks source link

Offer Scientio ontology/session as properties #137

Open josephbirkner opened 4 years ago

josephbirkner commented 4 years ago

Currently, the Scientio session and ontology are exposed as global variables.

This is another block towards multi-context processes, and has to be accounted for in testing, by manually clearing the initialized event.

Instead, prop_sess and prop_onto, as well as sig_init will be offered by ravestate_ontology.

Note: Replacing the initialised event with sig_init will not be super easy, since initialised.wait has no right flank. Perhaps we could resolve this by implementing EmitStep(). See #18