Generalize Agent prompt building
What does this merge request do and why?
Generalize Agent prompt building to processes other than Duo Chat. This gets us closer to completing the Agent Registry PoC gitlab-org/gitlab#432594 (closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.