2025-11-28 14:54:24 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
2025-12-04 15:06:39 +01:00
|
|
|
|
namespace AICore.Prompt.SystemPrompts
|
2025-11-28 14:54:24 +01:00
|
|
|
|
{
|
2025-12-04 15:06:39 +01:00
|
|
|
|
public class BaseSystemPromptBuilder
|
2025-11-28 14:54:24 +01:00
|
|
|
|
{
|
2026-02-20 12:51:18 +01:00
|
|
|
|
public string Path { get; set; }
|
2025-11-28 14:54:24 +01:00
|
|
|
|
|
2026-02-20 12:51:18 +01:00
|
|
|
|
public BaseSystemPromptBuilder(string path)
|
2025-11-28 14:54:24 +01:00
|
|
|
|
{
|
2026-02-20 12:51:18 +01:00
|
|
|
|
Path = path;
|
2025-11-28 14:54:24 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-20 12:51:18 +01:00
|
|
|
|
protected string getCustomSystemPrompt()
|
2025-11-28 14:54:24 +01:00
|
|
|
|
{
|
2026-02-20 12:51:18 +01:00
|
|
|
|
var path = Path;
|
2025-11-28 14:54:24 +01:00
|
|
|
|
return File.ReadAllText(path);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|