feat: Anweisungen-Feld für Agents mit EasyMDE-Editor

- AgentRecord: TaskInstruction (string, nullable)
- DB-Migration: task_instruction TEXT Spalte
- AgentEndpoint: Create/Update lesen taskInstruction
- SystemPromptBuilder: '## Anweisungen' Block nach Soul, nur wenn nicht leer
- HTML: Textarea #agentTaskInstruction nach Rückfragen-Checkbox
- agent-page.js: EasyMDE-Editor mit Init, Laden, Speichern, Destroy
This commit is contained in:
Meleki committed 2026-03-07 17:20:38 +01:00
1 parent 14e721f95b
commit 4f027360fd
6 files changed
+39 -5

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ public static class SystemPromptBuilder
blocks.Add(new PromptBlock { Icon = "fa-heart", Label = "Agent · SOUL.md (UseSoul)", Content = soul });
}
// Anweisungen
if (!string.IsNullOrWhiteSpace(agent.TaskInstruction))
{
blocks.Add(new PromptBlock { Icon = "fa-clipboard", Label = "Agent · Anweisungen", Content = $"## Anweisungen\n{agent.TaskInstruction.Trim()}" });
}
// User-Info: Persona aus dem Profil des Users der gerade schreibt
if (agent.UseUserInfo && !string.IsNullOrWhiteSpace(userPersona))
{