pybot / world /seed /bot /modules /understand.py
cmpatino's picture
cmpatino HF Staff
pybot task and world
adf68aa verified
Raw History Blame Contribute Delete
298 Bytes
"""Runs the understanding engine (bot/understanding) before any module proposes a reply."""
from ..understanding import understand
PRIORITY = 10000 # observes first, so every other module reads memory["understood"]
def observe(text, memory):
memory["understood"] = understand(text, memory)