Infer the operation types supported by providers based on the interfaces implemented

Created on 30 January 2025, 2 months ago

Problem/Motivation

AI providers need to implement getSupportedOperationTypes and return an array of supported types. But the provider then also needs to implement the interface. We could infer that list based on the interfaces the provider implements.

Proposed resolution

Remaining tasks

Make \Drupal\ai\AiProviderPluginManager::getOperationTypes return the intrface of the operation type.
Use the interface to filter the configured providers when returning them.

User interface changes

none

API changes

getSupportedOperationTypes becomes optional to implement

Data model changes

none

📌 Task
Status

Active

Version

1.0

Component

AI Core module

Created by

🇨🇭Switzerland bircher 🇨🇿

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