Automated Drupal 12 compatibility fixes for ai_agents_test 1.0.x-dev
<!-- project-update-bot:d12 project=ai_agents_test version=1.0.x-dev --> ## Problem/Motivation This is an automated issue to help make this module compatible with Drupal 12. Changes will periodically be added to this issue that remove deprecated API uses. The changes are posted by the [Project Update Bot](https://www.drupal.org/u/project-update-bot) official user account. This account will not receive any issue credit contributions. To stop the bot from posting further updates, post a comment containing `/ProjectUpdateBot:ignore` anywhere in its body. The bot will then leave this issue alone without it needing to be closed. ## Proposed resolution A merge request containing the automated changes is opened and kept up to date on this issue. Review and test the changes, then merge when you are happy with them. As the [Drupal Rector](https://github.com/palantirnet/drupal-rector) project improves, the changes posted here will cover more of the deprecated API uses in the module. **Warning: The issue-fork branch will always be overwritten by the bot. Do not work in that branch!** ### Providing feedback If there are problems with one of the changes posted by the Project Update Bot, such as it not correctly replacing a deprecation, you can file an issue in the [Drupal Rector issue queue](https://www.drupal.org/project/issues/rector). For other issues with the bot, use the [Project analysis issue queue](https://www.drupal.org/project/issues/project_analysis).
issue