Skip to content

feat(agents): change prompt lookup for agent registry

Igor Drozdov requested to merge id-agent-registry-custom-prompt-per-model into main

What does this merge request do and why?

Related discussions:

Before

  • Prompt definitions are stored either as specific/feature.yml or specific_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), then base.yml is appended: specific_feature/base.yml

Now

  • Prompt definitions are stored in a folder per feature: feature or specific/feature or very/specific/feature.
    • The name of yml files is either the name of the model for which the prompt is defined or base.yml: feature/codegemma.yml or specific/feature/base.yml or very/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
Edited by Igor Drozdov

Merge request reports

Loading