- Issue created by @marcus_johansson
This first requires this to be merged: https://www.drupal.org/project/ai/issues/3488891 📌 AI Agents reinvent Drupal Active
Some people might be uncofomfortable with the tokens module and writing prompts to have certain basic context given to the assistant, like current path.
We should add a way where some of the tokens are just checkboxes that adds one line of text into the system prompt.
For example the checkbox "Current Path" would add "Current path is: [current_path:token]\n".
On top of that should be a textarea with any custom tokens that should be added. This should be editable by default and have the list of tokens that you can add.
Add this for the following:
* Current path
* User name
* Site name
* Page title
* User language
Rewrite the runner to add these rows into a fixed token in the system prompt together with the textarea.
Make an update script that removes the part that is the tokens from the system message and updates this with just the token placeholder.
Active
1.0
AI Assistants API