Expose ECA custom events as tools to AI module

Created on 30 May 2025, 25 days ago

Problem/Motivation

We had considered exposing all ECA action plugins to AI, especially to agents and to MCP, but it turns out that for 2 reasons that's not a valid approach:

  • The action plugins are far too granular
  • They are missing metadata that would be necessary for agents and MCP to make use of them

Instead, let's expose custom events. They are the starting point for small or large models that provide some functionality, taking specified input and provide their result as structured output.

Proposed resolution

Let's enhance the custom event configuration such that the user can optionally provide extra metadata like input specification, description, etc., and then provide a plugin deriver to expose that custom event as a plugin implementing \Drupal\ai\Service\FunctionCalling\ExecutableFunctionCallInterface.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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