using System.Collections.Generic; namespace LinkToolAddin.client.prompt; public class DynamicPrompt { public static string GetPrompt(string name,Dictionary args) { PromptTemplates promptTemplate = new PromptTemplates(); string template = promptTemplate.GetPrompt(name); foreach (KeyValuePair pair in args) { string replaceKey = "{{"+pair.Key+"}}"; template.Replace(replaceKey, pair.Value.ToString()); } return template; } }