SystemInstruction -> SystemPrompt

This commit is contained in:
2025-12-04 15:06:39 +01:00
parent 035ee2910b
commit ca7052af88
10 changed files with 30 additions and 30 deletions

View File

@@ -108,21 +108,21 @@
<Compile Include="Facade\LLM\BaseLLMApiClient.cs" />
<Compile Include="Facade\LLM\OllamaApiClient.cs" />
<Compile Include="Facade\LLM\OpenWebApiClient.cs" />
<Compile Include="Prompt\SystemInstruction\AiFunctionSystemInstructionBuilder.cs" />
<Compile Include="Prompt\SystemPrompts\AiFunctionSystemPromptBuilder.cs" />
<Compile Include="Prompt\Core\AiUtils.cs" />
<Compile Include="Prompt\SystemInstruction\AiConversationSystemInstructionBuilder.cs" />
<Compile Include="Prompt\SystemPrompts\AiConversationSystemPromptBuilder.cs" />
<Compile Include="Prompt\Models\AiConversationContext.cs" />
<Compile Include="Prompt\SystemInstruction\BaseSystemInstructionBuilder.cs" />
<Compile Include="Prompt\SystemPrompts\BaseSystemPromptBuilder.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Prompt\SystemPrompts\system_prompt1.txt" />
<EmbeddedResource Include="Prompt\SystemPrompts\Examples\system_prompt1.txt" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Prompt\SystemPrompts\system_prompt2.txt" />
<EmbeddedResource Include="Prompt\SystemPrompts\Examples\system_prompt2.txt" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Prompt\SystemPrompts\system_prompt3.txt" />
<EmbeddedResource Include="Prompt\SystemPrompts\Examples\system_prompt3.txt" />
</ItemGroup>
<ItemGroup>
<Folder Include="Prompt\Factories\" />

View File

@@ -12,19 +12,19 @@ using System.Reflection;
using System.Text;
using System.Text.Json;
namespace AICore.Prompt.SystemInstruction
namespace AICore.Prompt.SystemPrompts
{
public class AiConversationSystemInstructionBuilder : BaseSystemInstructionBuilder
public class AiConversationSystemPromptBuilder : BaseSystemPromptBuilder
{
public AiConversationSystemInstructionBuilder(string prompt_path) : base(prompt_path) {
public AiConversationSystemPromptBuilder(string prompt_path) : base(prompt_path) {
}
public string CreateSystemInstructions(AiContextType uicontext, BaseContextSummary context, AiDataContextType aiDataContextType)
public string CreateSystemPrompt(AiContextType uicontext, BaseContextSummary context, AiDataContextType aiDataContextType)
{
var sb = new StringBuilder();
sb.AppendLine(getCustomSystemPrompt("customSystemInstruction.txt"));
sb.AppendLine(getCustomSystemPrompt("customPreSystemPrompt.txt"));
sb.AppendLine("### **Allgemein**");
sb.AppendLine($"- Aktuelle Zeit: {DateTime.Now}");

View File

@@ -11,20 +11,20 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AICore.Prompt.SystemInstruction
namespace AICore.Prompt.SystemPrompts
{
public class AiFunctionSystemInstructionBuilder : BaseSystemInstructionBuilder
public class AiFunctionSystemPromptBuilder : BaseSystemPromptBuilder
{
public AiFunctionSystemInstructionBuilder(string prompt_path) : base(prompt_path)
public AiFunctionSystemPromptBuilder(string prompt_path) : base(prompt_path)
{
}
public string CreateServiceRecordDocumentationSystemInstructions(BaseContextSummary context)
public string CreateServiceRecordDocumentationSystemPrompt(BaseContextSummary context)
{
var sb = new StringBuilder();
sb.AppendLine(getCustomSystemPrompt("customFunctionSystemInstruction.txt"));
sb.AppendLine(getCustomSystemPrompt("customFunctionPreSystemPrompt.txt"));
sb.AppendLine("### **Allgemein**");
sb.AppendLine($"- Aktuelle Zeit: {DateTime.Now}");

View File

@@ -5,13 +5,13 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AICore.Prompt.SystemInstruction
namespace AICore.Prompt.SystemPrompts
{
public class BaseSystemInstructionBuilder
public class BaseSystemPromptBuilder
{
public string SystemPromptFolderPath { get; set; }
public BaseSystemInstructionBuilder(string systemPromptFolderPath)
public BaseSystemPromptBuilder(string systemPromptFolderPath)
{
SystemPromptFolderPath = systemPromptFolderPath;
}