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

34 lines
750 B
C#

using BS.Shared;
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 readonly static Dictionary<AiActionType, string> Translations = new Dictionary<AiActionType, string>
{
{AiActionType.ServiceRecord, "Zeiterfassung" },
{AiActionType.ServiceRecordConversation, "Zeiterfassung" },
{AiActionType.ServiceRecordDocumentation, "Zeiterfassung" },
};
public string Path { get; set; }
public BaseSystemPromptBuilder(string path)
{
Path = path;
}
protected string getCustomSystemPrompt()
{
var path = Path;
return File.ReadAllText(path);
}
}
}