From a328322c41ab29f38655291d18968fb0de2039f6 Mon Sep 17 00:00:00 2001 From: siage Date: Tue, 29 Apr 2025 19:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20JSON=20=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A0=85=EF=BC=8C=E5=BC=B7=E8=AA=BF?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E8=A8=BB=E8=A7=A3=E5=8F=8A=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=AD=97=E5=85=83=E8=BD=89=E7=BE=A9=E8=A6=81=E6=B1=82=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E8=A7=A3=E6=9E=90=E5=A4=B1=E6=95=97?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/prompts/templates_en/reflectTask/index.md | 3 +++ src/prompts/templates_zh/reflectTask/index.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/prompts/templates_en/reflectTask/index.md b/src/prompts/templates_en/reflectTask/index.md index b8c525a..3c1037b 100644 --- a/src/prompts/templates_en/reflectTask/index.md +++ b/src/prompts/templates_en/reflectTask/index.md @@ -62,6 +62,9 @@ Choose subsequent actions based on the evaluation results: - **Consolidate when necessary**: If the modifications are minor or not complex, integrate them appropriately with other tasks to avoid excessive tasks due to over-simplification - **Repeated Calls**: If too many tasks or long content prevents "split_tasks" from working correctly, use the tool multiple times, submitting only a small portion of tasks each time - **Simplify Tasks**: If adding only one task at a time still doesn't work, consider further splitting or simplifying the task while retaining core content +- **JSON Format Note**: + - **No Comments**: JSON format itself does not support comments (e.g., `#` or `//`). Adding comments within JSON content will lead to parsing failures. + - **Escape Characters**: Special characters within JSON content, such as double quotes (`\"`) and backslashes (`\\\\`), must be properly escaped. Otherwise, they will be treated as illegal characters, causing parsing failures. **Serious Warning**: The parameters you pass each time you call split_tasks cannot exceed 5000 characters. If it exceeds 5000 characters, please call the tool multiple times to complete. diff --git a/src/prompts/templates_zh/reflectTask/index.md b/src/prompts/templates_zh/reflectTask/index.md index f509969..9cad664 100644 --- a/src/prompts/templates_zh/reflectTask/index.md +++ b/src/prompts/templates_zh/reflectTask/index.md @@ -62,6 +62,9 @@ - **必要時整合**:修改的內容不多或不複雜,可以適當於其他任務整合,避免任務過於簡單造成任務過多 - **重複調用**:如果任務太多或內容過長導致「split_tasks」工具無法正常運作時,請使用多次使用「split_tasks」工具,每次只提交一小部分任務 - **簡化任務**:如果每次只新增一個任務還是無法正常運作,請考慮再次拆分任務,或者簡化任務但必須保留核心內容 +- **JSON 格式注意**: + - **禁止註解**:JSON 格式本身不支援註解(例如 `#` 或 `//`),在 JSON 內容中添加註解會導致解析失敗。 + - **注意轉義**:JSON 內容中的特殊字元,例如雙引號 (`\"`)、反斜線 (`\\\\`) 等,必須進行正確的轉義處理,否則將視為非法字元,導致解析失敗。 **嚴重警告** 你每次呼叫 split_tasks 傳遞的參數不能超過 5000 個字,如果超出 5000 個字請多次呼叫工具完成