`before_cat_recalls_memories`
Intervene before the Cat searches into the specific memories.
Allows intercepting when the Cat queries the memories using the embedded user’s input.
The hook is executed just before the Cat searches for the meaningful context in both memories and stores it in the Working Memory.
📄 Arguments
Section titled “📄 Arguments”This hook has no input arguments, other than the default cat:
| Name | Type | Description |
|---|---|---|
cat |
Cat | Cheshire Cat instance, allows you to use the framework components. |
↩️ Return
Section titled “↩️ Return”Returns? Oh no, dear developer, this function is a one-way trip into the rabbit hole.
✍ Example
Section titled “✍ Example”from cat.mad_hatter.decorators import hook
@hook # default priority = 1def before_cat_recalls_memories(cat): # do whatever here