From 1c11ffa3cde91a1cb910e860bea89c8337121071 Mon Sep 17 00:00:00 2001 From: Meleki Date: Sat, 7 Mar 2026 11:45:06 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Dashboard-Badge=20+=20System-Prompt-Hin?= =?UTF-8?q?weis=20f=C3=BCr=20ask=5Fuser=5Fchoice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dashboard: 'Rückfragen'-Badge (🔵) bei Agent-Card wenn allowUserChoice aktiv - SystemPromptBuilder: Hinweis-Block der Claude anweist, ask_user_choice sparsam zu nutzen --- Services/SystemPromptBuilder.cs | 11 +++++++++++ wwwroot/js/ui.js | 1 + 2 files changed, 12 insertions(+) diff --git a/Services/SystemPromptBuilder.cs b/Services/SystemPromptBuilder.cs index de2687b..6d64dc1 100644 --- a/Services/SystemPromptBuilder.cs +++ b/Services/SystemPromptBuilder.cs @@ -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}" }); diff --git a/wwwroot/js/ui.js b/wwwroot/js/ui.js index 0459ba8..966ce9b 100644 --- a/wwwroot/js/ui.js +++ b/wwwroot/js/ui.js @@ -60,6 +60,7 @@ function buildAgentCard(agent, skills) { // Badges const badges = []; if (agent.toolChoice === 'any') badges.push(' Erzwungen'); + if (agent.allowUserChoice) badges.push(' Rückfragen'); if (agent.autoCommit === 'mention') badges.push(' Anmerken'); if (agent.autoCommit === 'enforce') badges.push(' Erzwungen'); if (agent.autoCommit === 'forbid') badges.push(' Verboten');