Make it possible to pick providers per agent
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3535760. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !202
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Currently the agent is using the default Chat with Tools provider, which in most cases are good. But you might want to split this up, so you only for instance use a top of the line model for the overriding assistant, while each agent might be able to solve their results using some smaller models.</p>
<p>Currently its solvable using events, but it should be part of the normal agent form.</p>
<p>Since configurations, specifically temperature matters, we need a way to also be able to set a custom configuration on each agent.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li><a href="https://git.drupalcode.org/project/ai/-/blob/1.2.x/src/Service/AiProviderFormHelper.php?ref_type=heads">Use the form helpers from the AI module to set this.</a></li>
<li>Ship this with the configuration of the AI Agents entity.</li>
<li>Make sure the runner uses this provider when calling the AI Agent.</li>
<li>Also update this in the <a href="https://git.drupalcode.org/project/ai_agents/-/blob/1.2.x/src/Plugin/modeler_api_model_owner/Agent.php?ref_type=heads">modeler api plugin</a> so that you can pick the same configuration there.</li>
</ul>
issue