Make it possible to @ mention an subagent
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3580423. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !1336 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Make a prototype, that makes it possible to use @ sign to call specific subagents that the assistant happens to have directly.</p> <p>This means the following logic:</p> <ul> <li>No @ sign - the conversation message is passed to the orchestration agent. It works like it always worked.</li> <li>One @ sign to a connected agent - the conversation message is passed to this agent instead.</li> <li>Two or more @ sign to connected agents - the chat will repond that this is not allowed, without actually passing it on to the agent.</li> </ul> <p>Rules to follow:</p> <ul> <li>Only agents that has been attached to the assistant can be mentioned.</li> <li>Conversation history is kept as it is, since its stateless it can easily be pass around.</li> </ul> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Implement it like above.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[ ] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue