default_information_tools can fatal when ai_agents inspects Tool API plugin results that were never set
### Steps to reproduce 1. Enable `ai_agents` and configure an agent with `default_information_tools`. 2. Use a Tool API plugin through `tool_ai_connector` as one of those default information tools. 3. Trigger a flow where ai_agents processes the default information tools and then inspects the wrapped plugin result for `_images`. ### Expected behavior `ai_agents` should safely skip image extraction when the wrapped plugin has no result object, and continue processing without a fatal error. ### Actual behavior In `AiAgentEntityWrapper`, ai_agents directly calls: ```php $result = $pluginInstance->getResult(); ``` inside the default_information_tools / context tool image collection path. If the wrapped Tool API plugin has no result object set, this can throw \BadMethodCallException and break the agent flow. A minimal defensive guard such as: ```php try { $result = $pluginInstance->getResult(); } catch (\BadMethodCallException $e) { $result = NULL; } ``` avoids the fatal and allows ai_agents to continue. ### AI usage - AI Assisted Issue: This issue was generated with AI assistance, but was reviewed and refined by the creator. - AI Generated Code: This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.
issue