wasurenakusa / engine

The modular ai conversation engine
GNU Affero General Public License v3.0
0 stars 1 forks source link

Replacing pluggy #19

Closed chr1st0ph3rGG closed 1 week ago

chr1st0ph3rGG commented 2 weeks ago

While Pluggy is quite cool, it can sometimes be a hindrance. The execution order of functions depends entirely on the order in which plugins are registered, and trying to fix that essentially breaks the hook system. Instead, we could remove Pluggy and manage the registration and calling of functions ourselves (what we already do for setup of the plugin). This way, we can control the execution order of each hook function directly through the character config YAML.

ToDo:

chr1st0ph3rGG commented 2 weeks ago

Just some notes regarding calling functions: