Argument on event is wrong
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3522948. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !108 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Drupal\ai_agents\Event\AgentResponseEvent::__construct(): Argument #6 ($response) must be of type string, Drupal\ai\OperationType\Chat\ChatMessage given</p> <p>Comes from <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai_agents/issues/3522896" title="Status: Closed (fixed)">#3522896: Add event for most recent response</a></span></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Try to run an agent.</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