From 76315fe061b8270efa46f6a1244aeac4778d6ad7 Mon Sep 17 00:00:00 2001 From: siage Date: Sun, 27 Apr 2025 00:02:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20TEMPLATES=5FUSE=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=81=B8=E9=A0=85=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E7=BE=A9=E6=8F=90=E7=A4=BA=E8=A9=9E=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=8C=E4=B8=A6=E6=9B=B4=E6=96=B0=20README=20?= =?UTF-8?q?=E5=92=8C=E4=B8=AD=E6=96=87=E6=96=87=E6=AA=94=E4=BB=A5=E5=8F=8D?= =?UTF-8?q?=E6=98=A0=E6=AD=A4=E8=AE=8A=E6=9B=B4=EF=BC=8C=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E7=94=A8=E6=88=B6=E8=87=AA=E5=AE=9A=E7=BE=A9=E8=83=BD=E5=8A=9B?= =?UTF-8?q?=E8=88=87=E9=9D=88=E6=B4=BB=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- docs/zh/README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f37495c..bfcc206 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,8 @@ Shrimp Task Manager supports customizing prompt behavior through environment var "DATA_DIR": "/path/to/project/data", "MCP_PROMPT_PLAN_TASK": "Custom planning guidance...", "MCP_PROMPT_EXECUTE_TASK_APPEND": "Additional execution instructions...", - "ENABLE_THOUGHT_CHAIN": "true" + "ENABLE_THOUGHT_CHAIN": "true", + "TEMPLATES_USE": "en" } } } @@ -275,6 +276,7 @@ Additionally, there are other system configuration variables: - **DATA_DIR**: Specifies the directory where task data is stored - **ENABLE_THOUGHT_CHAIN**: Controls the thinking model in task planning workflow. When set to `true` (default), the system guides users to use the `process_thought` tool for step-by-step reasoning. When set to `false`, the system directly uses `analyze_task` to submit analysis results, skipping the detailed thinking process. +- **TEMPLATES_USE**: Specifies the template set to use for prompts. Defaults to `en`. Currently available options are `en` and `zh`. To use custom templates, copy the `src/prompts/templates_en` directory to the location specified by `DATA_DIR`, rename the copied directory (e.g., to `my_templates`), and set `TEMPLATES_USE` to the new directory name (e.g., `my_templates`). For detailed instructions on customizing prompts, including supported parameters and examples, see the [Prompt Customization Guide](docs/en/prompt-customization.md). diff --git a/docs/zh/README.md b/docs/zh/README.md index b249a4d..e38d57a 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -253,7 +253,8 @@ or "DATA_DIR": "/path/to/project/data", "MCP_PROMPT_PLAN_TASK": "自定義規劃指導...", "MCP_PROMPT_EXECUTE_TASK_APPEND": "附加執行說明...", - "ENABLE_THOUGHT_CHAIN": "true" + "ENABLE_THOUGHT_CHAIN": "true", + "TEMPLATES_USE": "en" } } } @@ -269,6 +270,7 @@ or - **DATA_DIR**:指定任務數據存儲的目錄 - **ENABLE_THOUGHT_CHAIN**:控制任務規劃工作流中的思考模式。當設置為 `true`(預設值)時,系統引導用戶使用 `process_thought` 工具進行逐步推理。當設置為 `false` 時,系統直接使用 `analyze_task` 提交分析結果,跳過詳細的思考過程。 +- **TEMPLATES_USE**:指定提示詞使用的模板集。預設為 `en`。目前可用的選項有 `en` 和 `zh`。若要使用自定義模板,請將 `src/prompts/templates_en` 目錄複製到 `DATA_DIR` 指定的位置,重新命名複製的目錄(例如,`my_templates`),並將 `TEMPLATES_USE` 設置為新的目錄名稱(例如,`my_templates`)。 有關自定義提示詞的詳細說明,包括支援的參數和範例,請參閱[提示詞自定義指南](prompt-customization.md)。