BlockContent AiAgent
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3517117. --> Reported by: [podarok](https://www.drupal.org/user/116002) Related to !138 !73 >>> <h3>Issue Summary: Feature: Add Block Content Agent</h3> <p>This issue proposes the addition of a new AI agent, the <code>BlockContentAgent</code>, to the AI Agents module. This agent will be responsible for handling tasks related to Drupal block content types.</p> <p><b>Key Functionality:</b></p> <ul> <li>Creating new block content types.</li> <li>Editing existing block content types.</li> <li>Providing information about block content types.</li> <li>(Placeholder for delete functionality - needs implementation).</li> </ul> <p><b>Proposed Changes:</b></p> <ul> <li><b>New Prompts:</b> Introduction of <code>answerQuestion.yml</code> and <code>determineBlockContentTypeTask.yml</code> prompt files to guide the AI in answering questions and determining task types, respectively.</li> <li><b>New Agent Plugin:</b> Creation of the <code>BlockContentAgent</code> class (<code>src/Plugin/AiAgent/BlockContentAgent.php</code>) extending <code>AiAgentBase</code>. This plugin will implement the agent's logic.</li> <li><b>Drush Integration:</b> (Implicitly) Drush commands may be added to manage block content types via the agent.</li> </ul> <p><b>Review Considerations:</b></p> <ul> <li>Prompt definitions should be carefully reviewed for clarity, accuracy, and coverage of various use cases.</li> <li>The <code>BlockContentAgent</code> plugin's logic needs thorough examination to ensure correct handling of create, edit, delete (when implemented), and information retrieval tasks.</li> <li>Security and performance implications of the proposed changes should be considered.</li> </ul> <p>This issue aims to provide a more efficient and automated way to manage block content types within Drupal.</p>
issue