-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: 黎斌 <[email protected]>
- Loading branch information
Showing
8 changed files
with
152 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
api/core/tools/provider/builtin/feishu_document/tools/get_document_content.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
identity: | ||
name: get_document_content | ||
author: Doug Lea | ||
label: | ||
en_US: Get Document Content | ||
zh_Hans: 获取飞书云文档的内容 | ||
description: | ||
human: | ||
en_US: Get document content | ||
zh_Hans: 获取飞书云文档的内容 | ||
llm: A tool for retrieving content from Feishu cloud documents. | ||
parameters: | ||
- name: document_id | ||
type: string | ||
required: true | ||
label: | ||
en_US: document_id | ||
zh_Hans: 飞书文档的唯一标识 | ||
human_description: | ||
en_US: Unique identifier for a Feishu document. You can also input the document's URL. | ||
zh_Hans: 飞书文档的唯一标识,支持输入文档的 URL。 | ||
llm_description: 飞书文档的唯一标识,支持输入文档的 URL。 | ||
form: llm | ||
|
||
- name: mode | ||
type: string | ||
required: false | ||
label: | ||
en_US: mode | ||
zh_Hans: 文档返回格式 | ||
human_description: | ||
en_US: Format of the document return, optional values are text, markdown, can be empty, default is markdown. | ||
zh_Hans: 文档返回格式,可选值有 text、markdown,可以为空,默认值为 markdown。 | ||
llm_description: 文档返回格式,可选值有 text、markdown,可以为空,默认值为 markdown。 | ||
form: llm | ||
|
||
- name: lang | ||
type: number | ||
required: false | ||
default: 0 | ||
label: | ||
en_US: lang | ||
zh_Hans: 指定@用户的语言 | ||
human_description: | ||
en_US: | | ||
Specifies the language for MentionUser, optional values are [0, 1]. 0: User's default name, 1: User's English name, default is 0. | ||
zh_Hans: 指定返回的 MentionUser,即 @用户 的语言,可选值有 [0,1]。0:该用户的默认名称,1:该用户的英文名称,默认值为 0。 | ||
llm_description: 指定返回的 MentionUser,即 @用户 的语言,可选值有 [0,1]。0:该用户的默认名称,1:该用户的英文名称,默认值为 0。 | ||
form: llm |
23 changes: 0 additions & 23 deletions
23
api/core/tools/provider/builtin/feishu_document/tools/get_document_raw_content.yaml
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
api/core/tools/provider/builtin/feishu_document/tools/list_document_block.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
api/core/tools/provider/builtin/feishu_document/tools/list_document_blocks.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
identity: | ||
name: list_document_blocks | ||
author: Doug Lea | ||
label: | ||
en_US: List Document Blocks | ||
zh_Hans: 获取飞书文档所有块 | ||
description: | ||
human: | ||
en_US: List document blocks | ||
zh_Hans: 获取飞书文档所有块的富文本内容并分页返回 | ||
llm: A tool to get all blocks of Feishu documents | ||
parameters: | ||
- name: document_id | ||
type: string | ||
required: true | ||
label: | ||
en_US: document_id | ||
zh_Hans: 飞书文档的唯一标识 | ||
human_description: | ||
en_US: Unique identifier for a Feishu document. You can also input the document's URL. | ||
zh_Hans: 飞书文档的唯一标识,支持输入文档的 URL。 | ||
llm_description: 飞书文档的唯一标识,支持输入文档的 URL。 | ||
form: llm | ||
|
||
- name: user_id_type | ||
type: select | ||
required: false | ||
options: | ||
- value: open_id | ||
label: | ||
en_US: open_id | ||
zh_Hans: open_id | ||
- value: union_id | ||
label: | ||
en_US: union_id | ||
zh_Hans: union_id | ||
- value: user_id | ||
label: | ||
en_US: user_id | ||
zh_Hans: user_id | ||
default: "open_id" | ||
label: | ||
en_US: user_id_type | ||
zh_Hans: 用户 ID 类型 | ||
human_description: | ||
en_US: User ID type, optional values are open_id, union_id, user_id, with a default value of open_id. | ||
zh_Hans: 用户 ID 类型,可选值有 open_id、union_id、user_id,默认值为 open_id。 | ||
llm_description: 用户 ID 类型,可选值有 open_id、union_id、user_id,默认值为 open_id。 | ||
form: llm | ||
|
||
- name: page_size | ||
type: number | ||
required: false | ||
default: "500" | ||
label: | ||
en_US: page_size | ||
zh_Hans: 分页大小 | ||
human_description: | ||
en_US: Paging size, the default and maximum value is 500. | ||
zh_Hans: 分页大小, 默认值和最大值为 500。 | ||
llm_description: 分页大小, 表示一次请求最多返回多少条数据,默认值和最大值为 500。 | ||
form: llm | ||
|
||
- name: page_token | ||
type: string | ||
required: false | ||
label: | ||
en_US: page_token | ||
zh_Hans: 分页标记 | ||
human_description: | ||
en_US: Pagination token used to navigate through query results, allowing retrieval of additional items in subsequent requests. | ||
zh_Hans: 分页标记,用于分页查询结果,以便下次遍历时获取更多项。 | ||
llm_description: 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果。 | ||
form: llm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters