From 689776fed827c5b2c8864c89f364ce451107c2e5 Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Tue, 21 Apr 2026 00:42:43 +0530 Subject: [PATCH] fix: remove redundant try_it_out tool rule from system prompt Explicit 'Use try_it_out when...' instruction duplicates what the tool description already declares. Tool descriptions are the right place for capability/trigger declarations; the system prompt is for: - multi-step confirm flows (create_plugin/publish_plugin gates) - post-call state transitions - fallback behaviors on tool failure - cross-cutting policy exceptions (anti-hallucination EXCEPTION clause) The real fixes (anti-hallucination exception + unambiguous template_id message format) remain in place. --- src/api/routers/chat.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/api/routers/chat.py b/src/api/routers/chat.py index d8387c98..e01fdc89 100644 --- a/src/api/routers/chat.py +++ b/src/api/routers/chat.py @@ -531,11 +531,6 @@ def _build_system_prompt( "exist yet, reply: 'To save memories you need a memory agent first. " "I can create one for you — just say **create a memory agent**.'" " Then include [button:Create Memory Agent:/agents?spawn=1&skill=memory+agent].\n" - "- Use `try_it_out` when message contains 'try-it-out', 'tryit', '/tryit', 'run demo', " - "'show me demo', or 'template_id='. Pass the template_id exactly as given. " - "IMPORTANT: try_it_out creates its own demo agent automatically — it does NOT require " - "any pre-existing agent or plugin in DATA REGISTRY. Never refuse a try_it_out request " - "because of missing agents.\n" "- Answer in markdown for all other questions.\n\n" "Response formatting rules:\n" "- ALWAYS embed inline links when you mention any NebulaOS page or feature. "