Re-factor Agent form such that Modeler API plugin can re-use form spec and validation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3544420. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
Related to !187
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>--- AI TRACKER METADATA ---<br>
Update Summary: Make it possible to use the same code in Form API and Modeler API.<br>
Check-in Date: MM/DD/YYYY (US format) [When we should see progress/get an update]<br>
Due Date: MM/DD/YYYY (US format) [When the issue should be fully completed]<br>
Blocked by: [#XXXXXX] (New issues on new lines)<br>
Additional Collaborators: @username1, @username2<br>
AI Tracker found here: <a href="https://www.drupalstarforge.ai/">https://www.drupalstarforge.ai/</a><br>
--- END METADATA ---</p>
<p>The AiAgentForm is used to create and edit agents in a traditional Form API form. The Modeler API plugin, however, breaks down configuration into components, and therefore requires their own form build and validation methods.</p>
<p>We should re-factor the regular form in a way that it's going to be re-uasable by the plugin. This way, we avoid redundant code and we also make it easier to maintain, when adding new form fields.</p>
issue