Recreating a response from array of ChatMessage fails on tools
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3549921. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !927 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p><del>We have a system that we are adding for 1.2.x where we can record requests and responses and play them back. Its all documented here: <a href="https://project.pages.drupalcode.org/ai/1.2.x/developers/virtual_provider/">https://project.pages.drupalcode.org/ai/1.2.x/developers/virtual_provider/</a></del></p> <p><del>When testing this, we run into one big problem - it can't replicate to create the tools. This means that all agent reruns are out of the question at the moment.</del></p> <p>Turns out the issue was much larger then the AI Test module - this is an actual bug when you are generating a ChatMessage back from an array. The way its genating tools, is just not correct. This issue fixes that.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>* Fix so that the proxy can rerun tools as well.</p>
issue