Skip to content

Commit 49398b6

Browse files
committed
fix: correct extract.yaml structure and missing source config
1 parent 449ece7 commit 49398b6

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tools/somark/tools/extract.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ identity:
44
label:
55
en_US: Extract Document
66
zh_Hans: 文档解析
7-
description:
8-
human:
9-
en_US: Convert various document types—including PDFs, images, and more—into structured Markdown or JSON using the Somark API.
10-
zh_Hans: 使用 Somark API 将各种文档(如 PDF、图片等)转换为结构化的 Markdown 或 JSON 格式。
11-
llm: A precise and reliable tool that utilizes the Somark API to convert documents (including PDFs, images, and DOC files) into clean, structured Markdown or JSON format, preserving the original layout and content hierarchy.
7+
8+
description:
9+
human:
10+
en_US: Convert various document types—including PDFs, images, and more—into structured Markdown or JSON using the Somark API.
11+
zh_Hans: 使用 Somark API 将各种文档(如 PDF、图片等)转换为结构化的 Markdown 或 JSON 格式。
12+
llm: A precise and reliable tool that utilizes the Somark API to convert documents (including PDFs, images, and DOC files) into clean, structured Markdown or JSON format, preserving the original layout and content hierarchy.
1213

1314
parameters:
1415
- name: file
@@ -21,3 +22,7 @@ parameters:
2122
en_US: "Supported files: PDF, PNG, JPG, JPEG, BMP, TIFF, JP2, DIB, PPM, PGM, PBM, GIF, HEIC, HEIF, WEBP, XPM, TGA, DDS, XBM. Max 50MB/50 pages."
2223
zh_Hans: "支持的文件: PDF, PNG, JPG, JPEG, BMP, TIFF, JP2, DIB, PPM, PGM, PBM, GIF, HEIC, HEIF, WEBP, XPM, TGA, DDS, XBM. 大小不超过 50MB/50页。"
2324
form: llm
25+
26+
extra:
27+
python:
28+
source: tools/extract.py

0 commit comments

Comments
 (0)