Skip to content

after_cat_bootstrap

Intervene after 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 end of this process and is executed right after the Cat has finished loading its components.

This can be used to set or store variables to be shared further in the pipeline.

📄 Arguments

This hook has no input arguments, other than the default cat:

Name Type Description
cat StrayCat Cheshire Cat instance, allows you to use the framework components.

â†Šī¸ Return

Returns? Oh no, dear developer, this function is a one-way trip into the rabbit hole.

✍ Example

from cat.mad_hatter.decorators import hook

@hook  # default priority = 1
def after_cat_bootstrap(cat):
    # do whatever here