Add so agent tools can be seeded by structured results
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3532262. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently the tools can only be reseeded in the fromArray and toArray using readable output, but since we have the structuredOutput, we also can set this now, see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3529313" title="Status: Closed (fixed)">#3529313: Add `getStructuredOutput()` method to ExecutableFunctionCallInterface for returning parsed output</a></span></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Make it so the structured output is saved in the array and added on the input, instead of the normal readable output.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue