From d0c3bfac8a48c419cb01beb703b175626d24a3d4 Mon Sep 17 00:00:00 2001 From: siage Date: Sun, 27 Apr 2025 00:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=90=E7=A4=BA=E8=A9=9E?= =?UTF-8?q?=E8=AA=9E=E8=A8=80=E8=88=87=E5=AE=A2=E8=A3=BD=E5=8C=96=E8=AA=AA?= =?UTF-8?q?=E6=98=8E=EF=BC=8C=E6=9B=B4=E6=96=B0=20README=20=E5=92=8C?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=96=87=E6=AA=94=E4=BB=A5=E5=8F=8D=E6=98=A0?= =?UTF-8?q?=E6=AD=A4=E8=AE=8A=E6=9B=B4=EF=BC=8C=E5=BC=B7=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B6=E5=B0=8D=E7=B3=BB=E7=B5=B1=E6=8F=90=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E7=BE=A9=E8=83=BD=E5=8A=9B=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, 8 insertions(+) diff --git a/README.md b/README.md index bfcc206..b8686a6 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,10 @@ If you prefer to execute all tasks in sequence without manual intervention for e Due to LLM token limits, context may be lost during lengthy conversations. If this occurs, simply open a new chat session and ask the Agent to continue execution. The system will pick up where it left off without requiring you to repeat the task details or context. +### Prompt Language and Customization + +You can switch the language of system prompts by setting the `TEMPLATES_USE` environment variable. It supports `en` (English) and `zh` (Traditional Chinese) by default. Furthermore, you can copy an existing template directory (e.g., `src/prompts/templates_en`) to the location specified by `DATA_DIR`, modify it, and then point `TEMPLATES_USE` to your custom template directory name. This allows for deeper prompt customization. For detailed instructions. + ## 🧠 Task Memory Function Shrimp Task Manager has long-term memory capabilities, automatically saving task execution history and providing reference experiences when planning new tasks. diff --git a/docs/zh/README.md b/docs/zh/README.md index e38d57a..bb60d09 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -68,6 +68,10 @@ 由於 LLM 的 Token 限制,在長時間對話中可能會喪失上下文。如果發生這種情況,只需開啟新的聊天會話並請 Agent 繼續執行即可。系統將從上次中斷的地方繼續,無需重複任務細節或上下文。 +### 提示詞語言與客製化 + +您可以透過設定 `TEMPLATES_USE` 環境變數來切換系統提示詞的語言。預設支援 `en`(英文)和 `zh`(繁體中文)。此外,您也可以複製現有的模板目錄(例如 `src/prompts/templates_en`)到 `DATA_DIR` 指定的位置,進行修改後,將 `TEMPLATES_USE` 指向您的客製化模板目錄名稱,以實現更深度的提示詞客製化 + ## 🧠 任務記憶功能 蝦米任務管理器具備長期記憶功能,可以自動保存任務執行的歷史記錄,並在規劃新任務時提供參考經驗。