Files
BeWoPlaner/Server/Components/AICore/Prompt/SystemInstruction/BaseSystemInstructionBuilder.cs

27 lines
608 B
C#
Raw Normal View History

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