Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_agent" plugin does not exist

Created on 22 September 2024, 11 months ago

When accessing the page /admin/structure/ai_assistant/add, the error occured:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_agent" plugin does not exist. Valid plugin IDs for Drupal\ai_agents\PluginManager\AiAgentManager are: node_content_type_agent, webform_agent, views_agent, taxonomy_agent, field_type_agent in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇳China fishfree

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

Comments & Activities

  • Issue created by @fishfree
  • 🇮🇳India supriyagupta

    Hi @fishFree,

    I have tested the module with version 1.1.1, and the issue did not occur. However, when I created a custom plugin for the agent, the error appeared stating that the plugin ID does not exist.

    To resolve this, I created a custom agent from /admin/structure/ai_agent/add, and then implemented the corresponding plugin class for that agent. After doing this, the custom agent was correctly recognized by its ID and is now working as expected.

Production build 0.71.5 2024