Extensibility
The AI Bots addon is designed to be extensible. This means that developers can:
- Add own handlers
- Easy integrate AI Bots in their own addons
- Extend default bot tools
- Create own bot tools
- Extend existing bot handlers
Code Events
The AI Bots addon provides a number of code events that can be used to extend the functionality of the addon. These events are:
ai_bots_chatgpt_tools_load
: This event is triggered when the ChatGPT tools are loaded. Allows to add own ChatGPT tools.ai_bots_entity_handlers_setup
: This event is triggered when the entity handlers are set up. Allows to add own entity handlers to easily integrate AI Bots in a context. CheckBS\AIBots\Contracts\IEntityHandler
interface andBS\AIBots\Bots
namespace to understand how it works.ai_bots_handlers_load
: This event is triggered when the bot handlers are loaded. Allows to add own bot handlers based on other LLMs except ChatGPT. For example, Google Gemini or Character.AI.ai_bots_setup_defaults
: This event is triggered when the default settings are set up for a new bot. Allows to extend the default settings if you are extending a bot functionality.ai_bots_verify_input
: This event is triggered when a bot saving. Allows to verify the input data before saving a bot.
Entity Handlers
BS\AIBots\Contracts\IEntityHandler
interface is created to unify interaction with entities, which allows bots to work with any context without knowing what kind of entity it is. By implementing this interface for your entity, you will be able to integrate bots into your add-on without having to extend the AI Bots classes and write your own logic.
... more information for developers will be added soon.