Support Tool Result with Assistant API
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3579207. --> Reported by: [b_sharpe](https://www.drupal.org/user/2512258) Related to !26 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Similar to <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/agui/-/work_items/3576300" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/agui/-/work_items/3576300</a></span>, we need to somehow inject tool results into the buffer. I think we can just use a new event subscriber like in the mercure solution and just add to the buffer, but maybe not? We'll have to see how feasible this is or possibly moving the entire event emission.</p> <p>See <a href="https://git.drupalcode.org/project/agui/-/blob/1.0.x/src/Controller/AguiChatController.php?ref_type=heads#L161">https://git.drupalcode.org/project/agui/-/blob/1.0.x/src/Controller/AguiChatController.php?ref_type=heads#L161</a></p>
issue