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.ymlorspecific_feature/base.yml:- When
specific/featureis specified, the definition is fetched as-is:specific/feature.yml - When
specific_featureis specified (without a slash in the name), thenbase.ymlis appended:specific_feature/base.yml
- When
Now
- Prompt definitions are stored in a folder per feature:
featureorspecific/featureorvery/specific/feature.- The name of
ymlfiles is either the name of the model for which the prompt is defined orbase.yml:feature/codegemma.ymlorspecific/feature/base.ymlorvery/specific/feature/mistral.yml - When
specific/featureis 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