Add ChatConsumer for Agents
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556146. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>With <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 & tested by the community">#3492940: Add ChatProcessor</a></span> and the agents moving into core, we most likely have no use of actually needing the AI Assistant layer. This means that instead the agents could create ChatConsumer that has the settings the AI Assistant layer has.</p>
<p>Discussion has to be made if we already support multiple threads and want that in the future, so you can basically have one chat where you can pick the agent you talk to. But for 1-to-1 functionality parity, it means that the consumer sets one agent per chatbot.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Create a ChatConsumer for agent that has a form that sets:<br>
* Agent<br>
* Specific Error Messages (?)<br>
* Allow History (?)</p>
<p>We need to discuss how we store history in general, but that could potentially be set by the ChatConsumer.</p>
issue