feat(agents): change prompt lookup for agent registry
What does this merge request do and why?
Related discussions:
Before
- Prompt definitions are stored either as
specific/feature.yml
orspecific_feature/base.yml
:- When
specific/feature
is specified, the definition is fetched as-is:specific/feature.yml
- When
specific_feature
is specified (without a slash in the name), thenbase.yml
is appended:specific_feature/base.yml
- When
Now
- Prompt definitions are stored in a folder per feature:
feature
orspecific/feature
orvery/specific/feature
.- The name of
yml
files is either the name of the model for which the prompt is defined orbase.yml
:feature/codegemma.yml
orspecific/feature/base.yml
orvery/specific/feature/mistral.yml
- When
specific/feature
is specified:- If the model name is passed via model metadata, then fetch
specific/feature/model-name.yml
- Otherwise, append
base.yml
:specific/feature/base.yml
- If the model name is passed via model metadata, then fetch
- The name of
Edited by Igor Drozdov