20 lines
545 B
C#
20 lines
545 B
C#
using System.Collections.Generic;
|
|
|
|
namespace LinkToolAddin.client.prompt;
|
|
|
|
public class PromptTemplates
|
|
{
|
|
private Dictionary<string, string> prompts = new Dictionary<string, string>();
|
|
|
|
public PromptTemplates()
|
|
{
|
|
prompts.Add("plan", "请根据用户所提问题进行工具规划");
|
|
prompts.Add("param", "根据帮助文档填写工具参数");
|
|
prompts.Add("code", "现在需要生成代码,要求语法正确");
|
|
}
|
|
|
|
public string GetPrompt(string name)
|
|
{
|
|
return prompts[name];
|
|
}
|
|
} |