(META) - Configurable Agents Test
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3506111. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The current Agent system only allows you to setup an agent via code and the Drupal plugin system. This is a good solution for agents that might be complex or might need to do something out of the ordinary and need dependencies that are hard to have in configurations.</p>
<p>However most agents have some resusable parts:<br>
1. Context - this is the system prompt mostly.<br>
2. Dynamic Context - these are known context that should also be added into the system prompt, but that are dynamically loaded. For instance an list of all content types on the website.<br>
3. Tools or structured responses - these can either be tools that executes actions or returns data on Drupal websites or other agents. Or structured responses to fill out configurations.<br>
4. "Hard coded" forwarding, when you know that after its done it should call a tool.</p>
<p>All of these things could be plugins and be possible to be filled out via GUI. We could make Agents into a config entity, where you set these three things + some other parameters.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>For an initial test, the following issues should be done:</p>
<ul>
<li><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-3"><a href="https://www.drupal.org/project/ai_agents/issues/3506106" title="Status: Closed (duplicate)">#3506106: Create the tools for the Content Type Agent</a></span></li>
<li><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-17"><a href="https://www.drupal.org/project/ai_agents/issues/3506100" title="Status: Closed (outdated)">#3506100: Create an AI Agent config entity type</a></span></li>
<li><span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-3"><a href="https://www.drupal.org/project/ai_agents/issues/3506107" title="Status: Closed (duplicate)">#3506107: Setup Content Type AI Agent configuration</a></span></li>
</ul>
issue