(Discuss) Should we create a system prompt form element?
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3556187. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>We have modules like AI Context/Context Control Center, that want to be able to add context from the outside. Currently they only work with agents, because the agents has structured forms and events that it can deduce where to use.</p>
<p>However such a module would be good everywhere in theory. If you have a writing style guide, you might want to enable it on automator types, ckeditor summaries or translations for a specific language.</p>
<p>Currently there is no one place to connect this to the system prompt. We have the provider form element coming, but that is not where this belongs, see <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai/issues/3556181" title="Status: Closed (fixed)">#3556181: Create a form element for selecting providers</a></span>.</p>
<p>We do have the promp library, but I think the prompt library will just be used for places where we know that:</p>
<ul>
<li>More then one generic prompt is an option</li>
<li>The prompt is generic enough, so not for agents</li>
</ul>
<p>This means that this is also not the place to put this. The question then is how do we get this working.</p>
<p>One idea is that we create a form element specifically form system prompts. It could very much be like the textarea at first, but take a unique element id.</p>
<p>Later it could have a <a href="https://stackblitz.com/edit/easymde?file=index.html">markdown editor</a>, since markdown is a consistent way that models generally understands well.</p>
<p>Please discuss!</p>
issue