Add module dependencies to tools

Created on 12 March 2025, 23 days ago

Problem/Motivation

Currently there is a problem that we might add tools to for instance the agent module that has composer dependencies that does not exist if the dependent modules are not install.

This means that they will break already on createInstance, something that will make for instance the AI Agents form to fail.

To work around this we should add to the definition any required modules for an tool, and when the definitions are loaded, this filters out definitions where a module is missing.

Proposed resolution

  1. Add a new key to the attribute called required_modules that is an string array, that is allowed to be empty and null.
  2. When the definitions are loaded, use module handler to check if the module exists, otherwise do not load that definition.
  3. Clear the definition cache on module installs/uninstalls
📌 Task
Status

Active

Version

1.1

Component

AI Core module

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024