Files
BeWoPlaner/Server/Components/AICore/Prompt/SystemPrompts/BaseSystemPromptBuilder.cs

27 lines
594 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AICore.Prompt.SystemPrompts
{
public class BaseSystemPromptBuilder
{
public string SystemPromptFolderPath { get; set; }
public BaseSystemPromptBuilder(string systemPromptFolderPath)
{
SystemPromptFolderPath = systemPromptFolderPath;
}
protected string getCustomSystemPrompt(string file)
{
var systemPrompts = SystemPromptFolderPath;
var path = Path.Combine(systemPrompts, file);
return File.ReadAllText(path);
}
}
}