getDefaultInformationTools() should escape single quotes in token replacement values to prevent YAML parse failures
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3584463. --> Reported by: [akhil babu](https://www.drupal.org/user/3632866) Related to !257 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>After replacing the tokens, <code>AiAgentEntityWrapper::getDefaultInformationTools()</code> directly parses the tool YAML. So if any token contains a single quote in its replaced value, yaml::parse fails.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Parse the YAML first, then replace token values in the resulting PHP array.</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> > Related issue: [Issue #3572865](https://www.drupal.org/node/3572865)
issue