feat: Dashboard-Badge + System-Prompt-Hinweis für ask_user_choice

- Dashboard: 'Rückfragen'-Badge (🔵) bei Agent-Card wenn allowUserChoice aktiv
- SystemPromptBuilder: Hinweis-Block der Claude anweist, ask_user_choice sparsam zu nutzen
This commit is contained in:
Meleki committed 2026-03-07 11:45:06 +01:00
1 parent 89ceb61948
commit 1c11ffa3cd
2 files changed
+12

No files matched your search

+11
View File
@@ -73,6 +73,17 @@ Alle Dateipfade in Tool-Aufrufen müssen relativ zu diesem Workspace sein oder a
});
}
// Rückfragen-Hinweis
if (agent.AllowUserChoice)
{
blocks.Add(new PromptBlock
{
Icon = "fa-question-circle",
Label = "Agent · Rückfragen (AllowUserChoice)",
Content = "## Rückfragen\nWenn du dir bei einer Aufgabe unsicher bist oder es mehrere sinnvolle Wege gibt, nutze das `ask_user_choice`-Tool um dem User eine Auswahlliste zu präsentieren. Nutze es, wenn eine Entscheidung vom User getroffen werden soll."
});
}
if (!string.IsNullOrWhiteSpace(session.Context))
blocks.Add(new PromptBlock { Icon = "fa-info-circle", Label = "Session · Kontext", Content = $"## Kontext\n{session.Context}" });