[Meta] Move and improve AI Agents in AI Core roadmap
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3556141. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>While running 1.1.x an forth we have realized that agents is a common pattern that could be used everywhere. This means the combination of having a system prompt, tools/function calls, possibly loops and possibly a structured output is something that might be as common as the pure LLM call going forward.</p> <p>Because of that we want to move the agent config and the agents runner into AI Core. AI Agents might still exist, either as a tool and agent config module or as a pure agent config module for the agents we want to have out of the box in Drupal CMS for instance.</p> <p><strong>Note that plugin agents will be removed completely and have already had deprecation warnings.</strong></p> <p>Another important change that is happening before AI 2.0 release is that the <a href="https://www.drupal.org/project/tool">Tool API</a> will by all accounts be stable. This means a better tool layer, with new possibilities for the agents. There is a discussion there if we should jump to tools completely, if we should support both or if tool should downcast tools to function calling like it is now. The later shouldn't really be an option.</p> <p>This will also have implications on how the AI Assistants modules future looks like, since an AI Assistant is just an agent with some added rules.</p> <p>These are the known issues that we have to fix as part of this - all are dependent on the first issue:</p> <table> <tr> <td>Issue name/link</td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-4"><a href="https://www.drupal.org/project/ai/issues/3553398" title="Status: Postponed">#3553398: Move AI Agents Entity to AI Core and create a better structure</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/tool/-/work_items/3558327" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/tool/-/work_items/3558327</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/ai/issues/3556140" title="Status: Active">#3556140: [Discuss] Allow usage of Tool API in Agents</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-14"><a href="https://www.drupal.org/project/ai/issues/3492940" title="Status: Reviewed &amp; tested by the community">#3492940: Add ChatProcessor</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556146" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556146</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556378" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556378</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556389" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556389</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556380" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556380</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556392" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556392</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-4"><a href="https://www.drupal.org/project/ai/issues/3553408" title="Status: Postponed">#3553408: Recreate AI Agents runner, but only for config entities</a></span> - This may be replaced infavour of an SM approach: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/ai/issues/3493260" title="Status: Active">#3493260: Add Symfony Messenger Integration Module to AI module</a></span></td> </tr> </table> <table> <tr> <td>Nice to Haves</td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556394" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556394</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/ai/-/work_items/3556400" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/ai/-/work_items/3556400</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/ai/issues/3552140" title="Status: Active">#3552140: (Discuss) Improve the add/edit Agent UI to make it less overwhelming</a></span></td> </tr> <tr> <td><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-4"><a href="https://www.drupal.org/project/ai/issues/3554750" title="Status: Postponed">#3554750: Add Twig output rewrite field to advanced tool settings</a></span></td> </tr> </table> > Related issue: [Issue #3560619](https://www.drupal.org/node/3560619)
issue