Wikipedia tool causes error

Created on 21 April 2025, 15 days ago

Problem/Motivation

I am getting the following error while trying to add new AI agents

Class Drupal\ai_agents\Plugin\AiFunctionCall\Wikipedia contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\ai\Service\FunctionCalling\ExecutableFunctionCallInterface::getReadableOutput) in /var/www/html/web/modules/contrib/ai_agents/src/Plugin/AiFunctionCall/Wikipedia.php on line 35

The Wikipedia tool does not implement getReadableOutput() method

Steps to reproduce

Try creating an AI agent from the ui with the latest dev version of the module

Proposed resolution

The wikipedia tool has a setOutput method. But this method is not defined anywhere. Not sure if its going to be added to the plugin classes later.

Raising a PR with getReadableOutput

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India Akhil Babu Chengannur

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