From 1f1dc169ed62eb050aa8cb7912399b555b7f79e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Mon, 23 Mar 2026 17:35:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96=E5=8E=9F?= =?UTF-8?q?=E6=96=87=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agents/scriptAgent/tools.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/agents/scriptAgent/tools.ts b/src/agents/scriptAgent/tools.ts index 8f8cf9e..edc0831 100644 --- a/src/agents/scriptAgent/tools.ts +++ b/src/agents/scriptAgent/tools.ts @@ -32,6 +32,16 @@ export default (resTool: ResTool, toolsNames?: string[]) => { return planData[key]; }, }), + get_novel_text: tool({ + description: "获取小说章节原始文本内容", + inputSchema: z.object({ + id: z.string().describe("章节id"), + }), + execute: async ({ id }) => { + console.log(id); + return ""; + }, + }), set_planData_event: tool({ description: "保存章节事件到工作区", inputSchema: z.object({ value: planData.shape.event }),