-
Notifications
You must be signed in to change notification settings - Fork 1
Livingrimoire Built In Database
Moti Barski edited this page Apr 10, 2025
·
1 revision
The class AbsDictionaryDB serves as the database for LivinGrimoire. It provides methods for loading and saving data.
- save(key: String, value: String): Saves a key-value pair.
- load(key: String) -> String: Loads the value associated with a key.
These methods can be accessed in a skill via kokoro.grimoireMemento.
- Algorithm Part Mutations: The LivinGrimoire saves algorithm part mutations and loads them at startup from the database, assuming a subclass of AbsDictionaryDB is used. Otherwise, it serves as a blueprint for a database without causing errors.
- Algorithm Durations: Algorithm durations are not saved by default. They can be accessed via the Chobits class. The duration indicates how many think cycles an algorithm took to run the last time it was executed. This information is used by the LivinGrimoire to prioritize algorithm run requests.