`before_cat_bootstrap`
Intervene before the Cat has instantiated its components.
Bootstrapping is the process of loading the plugins, the natural language objects (e.g., the LLM), the memories, the Main Agent, the Rabbit Hole and the White Rabbit.
This hook allows intercepting the start of this process and is executed in the middle of plugins and natural language objects loading.
This hook can be used to set or store variables to be propagated to subsequent loaded objects.
📄 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_bootstrap(cat): # do whatever here