优化LLM提示词

This commit is contained in:
2026-02-28 22:34:51 +08:00
parent 6beb8b5be9
commit 53f1c4902c
9 changed files with 292 additions and 30 deletions

View 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();
}
}
}