Skip to content

Commit 8db634b

Browse files
committed
fix:pdf 工具加载失败,临时先去除
1 parent c94f6ae commit 8db634b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/apiTools.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ export const excelToCsv: Tool = {
11781178

11791179
registerTool(excelToCsv);
11801180

1181+
/*
11811182
// 读取 PDF 文件并提取文本内容的工具
11821183
export const readPdf: Tool = {
11831184
name: 'read_pdf',
@@ -1238,6 +1239,7 @@ export const readPdf: Tool = {
12381239
};
12391240
12401241
registerTool(readPdf);
1242+
*/
12411243

12421244
// 9. 提取前5个Error信息
12431245
export const diagnosticTop5Errors: Tool = {
@@ -1317,7 +1319,8 @@ registerTool(diagnosticTop5Errors);
13171319
// 12. 沙盒执行 Lua/Python 代码
13181320
export const sandboxRun: Tool = {
13191321
name: 'sandbox_run',
1320-
description: `在沙盒环境中执行 Lua、Python、Node.js、TypeScript 或 WSL Bash 代码,并返回标准输出、标准错误。禁止访问文件系统。`,
1322+
description: `在沙盒环境中执行 Lua、Python、Node.js、TypeScript 或 WSL Bash 代码,并返回标准输出、标准错误。禁止访问文件系统。
1323+
让你在沙盒里执行主要是要验证语法错误和执行结果。如果出错或者有输出,你应该先把这些信息提供给我,然后再做分析。方便我观察你做的怎么样`,
13211324
parameters: {
13221325
type: 'object',
13231326
properties: {

0 commit comments

Comments
 (0)