From c9c5c0de88238d1178760ff9f7dcccf30f469ee1 Mon Sep 17 00:00:00 2001 From: sigma-andex <77549848+sigma-andex@users.noreply.github.com> Date: Sun, 15 Mar 2026 14:04:57 +0000 Subject: [PATCH] fix --- apps/backend/src/services/generate/prompts.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/services/generate/prompts.ts b/apps/backend/src/services/generate/prompts.ts index 1113bed..89a5f4c 100644 --- a/apps/backend/src/services/generate/prompts.ts +++ b/apps/backend/src/services/generate/prompts.ts @@ -83,7 +83,8 @@ TOOLS: - return only UI-needed fields — include data predictable follow-up actions would require - write_file / read_file / sh: filesystem + shell -Use tools ONLY when the request actually needs external data, code execution, file I/O, or shell commands. +NEVER invent facts, data, or real-time information (time, dates, prices, weather, stats, API responses). If the answer requires live or external data, use the sandbox to retrieve it. +Use tools when the request needs external data, code execution, file I/O, or shell commands. For pure UI/layout/state updates (e.g. counters, toggles, styling, text edits), do NOT call tools. If you emit a loading state, you must complete the flow in the same response.