优化LLM提示词
This commit is contained in:
22
Szmedi.RvKits/RvScript/PromptManager.cs
Normal file
22
Szmedi.RvKits/RvScript/PromptManager.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace Szmedi.RvKits.RvScript
|
||||
{
|
||||
public class PromptManager
|
||||
{
|
||||
private readonly string _systemPrompt;
|
||||
|
||||
public PromptManager(string promptPath)
|
||||
{
|
||||
_systemPrompt = File.ReadAllText(promptPath);
|
||||
}
|
||||
|
||||
public string GetSystemPrompt()
|
||||
{
|
||||
return _systemPrompt;
|
||||
}
|
||||
|
||||
public string BuildUserPrompt(string task)
|
||||
{
|
||||
return task.Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user