The 'ai_agents.agent_status_poller' service does not give any data about default information tools used
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3576169. -->
Reported by: [akhil babu](https://www.drupal.org/user/3632866)
Related to !242
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The <code>Drupal\ai_agents\EventSubscriber\AgentStatusSubscriber </code>subscibes to both <code>Drupal\ai_agents\Event\AgentToolPreExecuteEvent</code> and <code>Drupal\ai_agents\Event\AgentToolFinishedExecutionEvent</code>. But these events are not triggered when a default information tool is invoked. So currently it is not possible to get any info regarding default information tool from the poller service</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>Remove the <code>if ($agent_decision)</code> check, which currently prevents tool started and tool finished events from firing for default information tools.</li>
<li>Pass the <code>$agent_decision</code> value with tool events so poller service consumers can distinguish between a standard tool call and a default information tool call using the <code>isAgentDecision()</code> method</li>
<li>Since default information tools do not have a tool ID, generate a unique identifier by combining the tool plugin ID, runner ID, and context values. This ensures tool start and execution finished events can be reliably tracked in the poller service output.</li>
<li>Update <code>AgentStatusSubscriber</code> to capture the arguments passed to default information tools and push them to poller storage. This enables use cases such as identifying which context was loaded from Context Control Center and displaying that information in the chat UI, as required in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/canvas/issues/3575780" title="Status: Active">#3575780: Implement tool call visibility UI in Canvas AI</a></span>.</li>
<li>Added a test to verify that these events are triggered correctly</li>
</ul>
<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 #3575780](https://www.drupal.org/node/3575780)
issue